git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d4d2fc4
)
pr-initialize-dont-leak-ref-20041009
author
Derrick Brashear
<shadow@dementia.org>
Sun, 10 Oct 2004 03:03:11 +0000 (
03:03
+0000)
committer
Derrick Brashear
<shadow@dementia.org>
Sun, 10 Oct 2004 03:03:11 +0000 (
03:03
+0000)
we were leaking an afsconf_Open ref. let's not.
src/ptserver/ptuser.c
patch
|
blob
|
history
diff --git
a/src/ptserver/ptuser.c
b/src/ptserver/ptuser.c
index
df297b5
..
690d7c4
100644
(file)
--- a/
src/ptserver/ptuser.c
+++ b/
src/ptserver/ptuser.c
@@
-86,6
+86,8
@@
pr_Initialize(IN afs_int32 secLevel, IN char *confDir, IN char *cell)
/*
* Different conf dir; force re-evaluation.
*/
+ if (tdir)
+ afsconf_Close(tdir);
tdir = (struct afsconf_dir *)0;
pruclient = (struct ubik_client *)0;
}