Fix memory leak in t_expire_warn
authorEzra Peisach <epeisach@mit.edu>
Wed, 23 Feb 2011 11:38:33 +0000 (11:38 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 23 Feb 2011 11:38:33 +0000 (11:38 +0000)
Free context.  Allows one to look for new leaks introduced in other
pathways.

ticket: 6872

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24650 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/t_expire_warn.c

index 6e8d87ce14e153501f5519ed47ab2a6a9f3fe13c..12cdec143c8201ae8371ccd2338508f81eb4c923 100644 (file)
@@ -86,5 +86,6 @@ main(int argc, char **argv)
     krb5_get_init_creds_opt_free(ctx, opt);
     krb5_free_principal(ctx, client);
     krb5_free_cred_contents(ctx, &creds);
+    krb5_free_context(ctx);
     return 0;
 }