projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3dec1b
)
Inovke krb5_rc_close to shutdown cache - and check for memory leaks
author
Ezra Peisach
<epeisach@mit.edu>
Mon, 18 Dec 2006 11:22:49 +0000
(11:22 +0000)
committer
Ezra Peisach
<epeisach@mit.edu>
Mon, 18 Dec 2006 11:22:49 +0000
(11:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18960
dc483132
-0cff-0310-8789-
dd5450dbe970
src/tests/threads/t_rcache.c
patch
|
blob
|
history
diff --git
a/src/tests/threads/t_rcache.c
b/src/tests/threads/t_rcache.c
index 49b6927b4d2d8a75839e7d191cbc2ea8494ba97c..5d817defb162dfc106bfb22a871f2f403409c697 100644
(file)
--- 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;
}