From: Ezra Peisach Date: Mon, 18 Dec 2006 11:22:49 +0000 (+0000) Subject: Inovke krb5_rc_close to shutdown cache - and check for memory leaks X-Git-Tag: krb5-1.7-alpha1~1398 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=13837d7af7682c0f59c9fc402870a875dded3285;p=krb5.git Inovke krb5_rc_close to shutdown cache - and check for memory leaks git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18960 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/threads/t_rcache.c b/src/tests/threads/t_rcache.c index 49b6927b4..5d817defb 100644 --- a/src/tests/threads/t_rcache.c +++ b/src/tests/threads/t_rcache.c @@ -168,7 +168,12 @@ int main (int argc, char *argv[]) sleep(1); for (i = 0; i < n; i++) printf("thread %d total %5d\n", i, ip[i]); + free(ip); } #endif +#ifdef INIT_ONCE + krb5_rc_close(ctx, rcache); +#endif + krb5_free_context(ctx); return 0; }