From 47172a94344b60d77ae65bb91f438cac85945589 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 14 Dec 2010 23:10:49 +0000 Subject: [PATCH] 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. ticket: 6841 version_fixed: 1.9 status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-9@24572 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/changepw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/krb5/os/changepw.c b/src/lib/krb5/os/changepw.c index 25840b6d5..0e15932c2 100644 --- a/src/lib/krb5/os/changepw.c +++ b/src/lib/krb5/os/changepw.c @@ -266,6 +266,7 @@ change_set_password(krb5_context context, 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, -- 2.26.2