diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2006-12-18 11:22:49 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2006-12-18 11:22:49 +0000 |
| commit | 13837d7af7682c0f59c9fc402870a875dded3285 (patch) | |
| tree | d6009e46890ebe6ec238f620c5aa479a21c5493d /src/tests/threads | |
| parent | e3dec1b8daa1893cd60cbfca7608f66524117ca1 (diff) | |
| download | krb5-13837d7af7682c0f59c9fc402870a875dded3285.tar.gz krb5-13837d7af7682c0f59c9fc402870a875dded3285.tar.xz krb5-13837d7af7682c0f59c9fc402870a875dded3285.zip | |
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
Diffstat (limited to 'src/tests/threads')
| -rw-r--r-- | src/tests/threads/t_rcache.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |
