From: Greg Hudson Date: Thu, 23 Jun 2011 19:25:55 +0000 (+0000) Subject: Fix memory leak introduced in r24969 X-Git-Tag: krb5-1.10-alpha1~388 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56ccddbf6b3141761173f0f1bd4dace28509eb39;p=krb5.git Fix memory leak introduced in r24969 The new context field plugin_base_dir wasn't being freed on context deletion. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24985 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 657b2dbb3..c5bac1330 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -291,6 +291,7 @@ krb5_free_context(krb5_context ctx) #endif k5_plugin_free_context(ctx); + free(ctx->plugin_base_dir); ctx->magic = 0; free(ctx);