Fix memory leak introduced in r24969
authorGreg Hudson <ghudson@mit.edu>
Thu, 23 Jun 2011 19:25:55 +0000 (19:25 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 23 Jun 2011 19:25:55 +0000 (19:25 +0000)
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

src/lib/krb5/krb/init_ctx.c

index 657b2dbb3135d79494d5c02c21fd8dd01dcba938..c5bac1330a918cd61da2713a45006ef95d63b225 100644 (file)
@@ -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);