svn rev #22318: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Wed May 6 11:56:22 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22318
Commit By: ghudson
Log Message:
Fix a memory leak in pa_sam_2 where an outer data structure wasn't
freed after the contents are coopted.
Changed Files:
U trunk/src/lib/krb5/krb/preauth2.c
Modified: trunk/src/lib/krb5/krb/preauth2.c
===================================================================
--- trunk/src/lib/krb5/krb/preauth2.c 2009-05-05 17:11:48 UTC (rev 22317)
+++ trunk/src/lib/krb5/krb/preauth2.c 2009-05-06 15:56:21 UTC (rev 22318)
@@ -1705,6 +1705,7 @@
sam_padata->pa_type = KRB5_PADATA_SAM_RESPONSE_2;
sam_padata->length = scratch->length;
sam_padata->contents = (krb5_octet *) scratch->data;
+ free(scratch);
*out_padata = sam_padata;
More information about the cvs-krb5
mailing list