From 5b75c1588a8ebc24216e1b56bf50e9b3ad513894 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 5 Dec 2001 11:58:54 +0000 Subject: [PATCH] * 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 --- src/util/profile/ChangeLog | 5 +++++ src/util/profile/test_profile.c | 1 + 2 files changed, 6 insertions(+) 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) { -- 2.26.2