pull up r22473 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 29 Sep 2009 01:12:31 +0000 (01:12 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 29 Sep 2009 01:12:31 +0000 (01:12 +0000)
 ------------------------------------------------------------------------
 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

src/lib/krb5/krb/t_authdata.c

index 5bacf5f64f7bdd4364312510e0805ad030be0159..8b786875f5a07f77f7ea886d7149cc79b4b7da2f 100644 (file)
@@ -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;
 }