Free allocated serializers when releasing context
authorPaul Park <pjpark@mit.edu>
Tue, 29 Aug 1995 18:37:15 +0000 (18:37 +0000)
committerPaul Park <pjpark@mit.edu>
Tue, 29 Aug 1995 18:37:15 +0000 (18:37 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6620 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/init_ctx.c

index c861bb1864d240c9193583dd7fb95543ee3911af..00bf2d528aab8559af56bfac8bf9e5d03d77effe 100644 (file)
@@ -70,6 +70,9 @@ krb5_free_context(ctx)
      if (ctx->default_realm)
          free(ctx->default_realm);
 
+     if (ctx->ser_ctx_count && ctx->ser_ctx)
+        free(ctx->ser_ctx);
+
      ctx->magic = 0;
      free(ctx);
 }