From: Greg Hudson Date: Wed, 20 Feb 2013 17:06:12 +0000 (-0500) Subject: Fix memory leak closing DIR ccaches X-Git-Tag: krb5-1.12-alpha1~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c264c4e824e1abe77806e7bf43ab2641459b7ee9;p=thirdparty%2Fkrb5.git Fix memory leak closing DIR ccaches A ccache type's close function is supposed to free the cache container as well as the type-specific data. dcc_close was not doing so, causing a small memory leak each time a ccache is created or destroyed. ticket: 7574 (new) target_version: 1.11.1 tags: pullup --- diff --git a/src/lib/krb5/ccache/cc_dir.c b/src/lib/krb5/ccache/cc_dir.c index dc133f91ba..1c97485aca 100644 --- a/src/lib/krb5/ccache/cc_dir.c +++ b/src/lib/krb5/ccache/cc_dir.c @@ -435,6 +435,7 @@ dcc_close(krb5_context context, krb5_ccache cache) ret = krb5_fcc_ops.close(context, data->fcc); free(data->residual); free(data); + free(cache); return ret; }