From 96d4b3f4cb068b8785b36a1fc78d0a468cbd725c Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 23 Feb 2011 11:38:33 +0000 Subject: [PATCH] Fix memory leak in t_expire_warn 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/krb5/krb/t_expire_warn.c b/src/lib/krb5/krb/t_expire_warn.c index 6e8d87ce1..12cdec143 100644 --- a/src/lib/krb5/krb/t_expire_warn.c +++ b/src/lib/krb5/krb/t_expire_warn.c @@ -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; } -- 2.26.2