From: Ezra Peisach Date: Wed, 5 Dec 2001 11:58:54 +0000 (+0000) Subject: * test_profile.c (main): Call profile_release() before exiting X-Git-Tag: krb5-1.3-alpha1~929 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5b75c1588a8ebc24216e1b56bf50e9b3ad513894;p=krb5.git * test_profile.c (main): Call profile_release() before exiting in case of error return. (memory leak testing) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14039 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 8108968f6..50b71cbb0 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,8 @@ +2001-12-05 Ezra Peisach + + * test_profile.c (main): Call profile_release() before exiting + in case of error return. (memory leak testing) + 2001-10-09 Ken Raeburn * prof_int.h, profile.hin, test_parse.c: Make prototypes diff --git a/src/util/profile/test_profile.c b/src/util/profile/test_profile.c index 5ed881561..df4867d74 100644 --- a/src/util/profile/test_profile.c +++ b/src/util/profile/test_profile.c @@ -150,6 +150,7 @@ int main(argc, argv) } if (retval) { com_err(argv[0], retval, "while getting values"); + profile_release(profile); exit(1); } if (print_value) {