projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82c6875
)
plug a memory leak
author
John Kohl
<jtkohl@mit.edu>
Wed, 20 Feb 1991 16:04:15 +0000
(16:04 +0000)
committer
John Kohl
<jtkohl@mit.edu>
Wed, 20 Feb 1991 16:04:15 +0000
(16:04 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1739
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/rcache/rc_dfl.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/rcache/rc_dfl.c
b/src/lib/krb5/rcache/rc_dfl.c
index 10c5eb269eb5f254e652b58174e04ca6fb9edc14..d0aba4fce6e1961a1009e26ecebe18e48c827240 100644
(file)
--- a/
src/lib/krb5/rcache/rc_dfl.c
+++ b/
src/lib/krb5/rcache/rc_dfl.c
@@
-349,6
+349,11
@@
krb5_rcache id;
if (store(id,rep) == CMP_MALLOC) {/* can't be a replay */
CLOSE;
return KRB5_RC_MALLOC;
+ } else {
+ /* store() copies the server & client fields to make sure they don't get
+ stomped on by other callers, so we need to free them */
+ FREE(rep->server);
+ FREE(rep->client);
}
}
end_loop: krb5_rc_io_unmark(&t->d);