svn rev #24447: trunk/src/lib/gssapi/mechglue/
ghudson@MIT.EDU
ghudson at MIT.EDU
Sat Oct 9 07:46:53 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=24447
Commit By: ghudson
Log Message:
Plug a memory leak in gss_indicate_mechs.
Changed Files:
U trunk/src/lib/gssapi/mechglue/g_initialize.c
Modified: trunk/src/lib/gssapi/mechglue/g_initialize.c
===================================================================
--- trunk/src/lib/gssapi/mechglue/g_initialize.c 2010-10-08 18:40:13 UTC (rev 24446)
+++ trunk/src/lib/gssapi/mechglue/g_initialize.c 2010-10-09 11:46:53 UTC (rev 24447)
@@ -249,8 +249,10 @@
* I'm copying it.
*/
*minorStatus = k5_mutex_lock(&g_mechSetLock);
- if (*minorStatus)
+ if (*minorStatus) {
+ free(mechSet);
return GSS_S_FAILURE;
+ }
/* allocate space for the oid structures */
if ((mechSet->elements =
More information about the cvs-krb5
mailing list