From: Tom Yu Date: Tue, 29 Sep 2009 01:12:31 +0000 (+0000) Subject: pull up r22473 from trunk X-Git-Tag: krb5-1.7.1-beta1~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c248ffea0217f0a92cfeccc06ef2431a48717fd;p=krb5.git pull up r22473 from trunk ------------------------------------------------------------------------ r22473 | epeisach | 2009-07-30 13:12:20 -0400 (Thu, 30 Jul 2009) | 5 lines ticket: 6540 subject: memory leak in test code t_authdata Free the krb5_context at the end to release memory. ticket: 6540 status: resolved version_fixed: 1.7.1 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22808 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/t_authdata.c b/src/lib/krb5/krb/t_authdata.c index 5bacf5f64..8b786875f 100644 --- a/src/lib/krb5/krb/t_authdata.c +++ b/src/lib/krb5/krb/t_authdata.c @@ -98,5 +98,6 @@ int main() assert( results[3] == NULL); krb5_free_authdata(context, results); krb5_free_authdata(context, container_out); + krb5_free_context(context); return 0; }