svn rev #24567: trunk/src/lib/krb5/os/

tlyu@MIT.EDU tlyu at MIT.EDU
Tue Dec 14 12:34:48 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24567
Commit By: tlyu
Log Message:
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   trunk/src/lib/krb5/os/changepw.c
Modified: trunk/src/lib/krb5/os/changepw.c
===================================================================
--- trunk/src/lib/krb5/os/changepw.c	2010-12-14 17:28:38 UTC (rev 24566)
+++ trunk/src/lib/krb5/os/changepw.c	2010-12-14 17:34:48 UTC (rev 24567)
@@ -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