[16118] in Kerberos-V5-bugs
[krbdev.mit.edu #8739] Memory leak in function main() in
daemon@ATHENA.MIT.EDU (Yang Xiao via RT)
Tue Sep 18 13:11:53 2018
Mail-followup-to: rt@krbdev.mit.edu
mail-copies-to: never
From: "Yang Xiao via RT" <rt-comment@KRBDEV-PROD-APP-1.mit.edu>
In-Reply-To: <rt-8739@krbdev.mit.edu>
Message-ID: <rt-8739-48825.19.1407773923971@krbdev.mit.edu>
To: "'AdminCc of krbdev.mit.edu Ticket #8739'":;
Date: Tue, 18 Sep 2018 13:06:38 -0400 (EDT)
Reply-To: rt-comment@KRBDEV-PROD-APP-1.mit.edu
Content-Type: multipart/mixed; boundary="===============1167533406435684305=="
Errors-To: krb5-bugs-bounces@mit.edu
--===============1167533406435684305==
Hi,
There should be function call for free(tinfo) at the end of the function
main() in profread.c and gss-perf.c. Otherwise, there would be memory
leaks. The patches for main() in profread.c and gss-perf.c are the same
as below.
This is the similar issue as trunk@23559.
commit ebfd96a98ccb8f7df042cadbeefa00ee4761b9fa
Author: Ezra Peisach <epeisach@mit.edu>
Date: Thu Dec 31 23:18:16 2009 +0000
Free tinfo at end - so program runs with new memory leaks
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23559
dc483132-0cff-0310-8789-dd5450dbe970
diff --git a/src/tests/threads/init_ctx.c b/src/tests/threads/init_ctx.c
index 208104d..1629060 100644
--- a/src/tests/threads/init_ctx.c
+++ b/src/tests/threads/init_ctx.c
@@ -274,5 +274,6 @@ main (int argc, char *argv[])
100 * total / wallclock / n_threads);
printf ("Total CPU use per iteration per thread: %Lfms\n",
1000 * total / n_threads / iter_count);
+ free(tinfo);
return 0;
}
Young
--===============1167533406435684305==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs
--===============1167533406435684305==--