From: Tom Yu Date: Tue, 14 Dec 2010 17:34:48 +0000 (+0000) Subject: memory leak in changepw.c X-Git-Tag: krb5-1.10-alpha1~631 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ed41eb79b04395795a0f8f7a32e53ca0c9a5c44;p=krb5.git memory leak in changepw.c Apply patch from Marcus Watts to avoid a memory leak in changepw.c. ticket: 6841 tags: pullup target_version: 1.9 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24567 dc483132-0cff-0310-8789-dd5450dbe970 --- 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,