From: Tom Yu Date: Tue, 28 Jun 2011 22:11:47 +0000 (+0000) Subject: Memory leak in save_error_string_nocopy() X-Git-Tag: krb5-1.8.5-beta1~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c8d693dad9a082d40434a0355c84cade4ff85804;p=krb5.git Memory leak in save_error_string_nocopy() pull up r24693 from trunk ------------------------------------------------------------------------ r24693 | tlyu | 2011-03-08 15:53:55 -0500 (Tue, 08 Mar 2011) | 8 lines ticket: 6844 tags: pullup target_version: 1.9.1 Fix a memory leak independently found by Tim Pozdeev and Arlene Berry. This change should be pulled up to the 1.8 and 1.7 branches as well. ticket: 6925 version_fixed: 1.8.5 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-8@24998 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/disp_status.c b/src/lib/gssapi/krb5/disp_status.c index 6b164c249..f04872d8f 100644 --- a/src/lib/gssapi/krb5/disp_status.c +++ b/src/lib/gssapi/krb5/disp_status.c @@ -148,6 +148,7 @@ void krb5_gss_save_error_info(OM_uint32 minor_code, krb5_context ctx) void krb5_gss_delete_error_info(void *p) { gsserrmap_destroy(p); + free(p); } /**/