svn rev #24572: branches/krb5-1-9/src/lib/krb5/os/

tlyu@MIT.EDU tlyu at MIT.EDU
Tue Dec 14 18:10:49 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24572
Commit By: tlyu
Log Message:
ticket: 6841
version_fixed: 1.9
status: resolved

pull up r24567 from trunk

 ------------------------------------------------------------------------
 r24567 | tlyu | 2010-12-14 12:34:48 -0500 (Tue, 14 Dec 2010) | 7 lines

 ticket: 6841
 subject: memory leak in changepw.c
 tags: pullup
 target_version: 1.9

 Apply patch from Marcus Watts to avoid a memory leak in changepw.c.


Changed Files:
U   branches/krb5-1-9/src/lib/krb5/os/changepw.c
Modified: branches/krb5-1-9/src/lib/krb5/os/changepw.c
===================================================================
--- branches/krb5-1-9/src/lib/krb5/os/changepw.c	2010-12-14 23:10:45 UTC (rev 24571)
+++ branches/krb5-1-9/src/lib/krb5/os/changepw.c	2010-12-14 23:10:49 UTC (rev 24572)
@@ -266,6 +266,7 @@
         callback_info.context = (void*) &callback_ctx;
         callback_info.pfn_callback = kpasswd_sendto_msg_callback;
         callback_info.pfn_cleanup = kpasswd_sendto_msg_cleanup;
+        krb5_free_data_contents(callback_ctx.context, &chpw_rep);
 
         if ((code = krb5int_sendto(callback_ctx.context,
                                    NULL,




More information about the cvs-krb5 mailing list