summaryrefslogtreecommitdiff
path: root/server/uloc.c
diff options
context:
space:
mode:
authorGravatar Lucien Van Elsen <lwvanels@mit.edu>1992-08-10 09:24:14 +0000
committerGravatar Lucien Van Elsen <lwvanels@mit.edu>1992-08-10 09:24:14 +0000
commitcfc6f877ce1d1968ee8fd27efe86dec4ed984aef (patch)
treeec5e20558da5bb569e23c1f14a802b2e80132d7a /server/uloc.c
parent107f9dc3fbffeeab97b19ac161ab5b8bc18af544 (diff)
fix leaks in ulogin_setup and ulogin_find
Diffstat (limited to 'server/uloc.c')
-rw-r--r--server/uloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/uloc.c b/server/uloc.c
index 52f5410..55140c0 100644
--- a/server/uloc.c
+++ b/server/uloc.c
@@ -714,7 +714,6 @@ ulogin_setup(notice, locs, exposure, who)
free_zstring(locs->zlt_machine);
return(1);
}
- locs->zlt_time = strsave(locs->zlt_time);
if (!locs->zlt_time) {
free_zstring(locs->zlt_user);
free_zstring(locs->zlt_machine);
@@ -827,9 +826,10 @@ ulogin_find(notice, strict)
else
rhi = i - 1;
if (rhi - rlo < 0) {
-#if 1
+#if 0
zdbug((LOG_DEBUG,"ul_find not found"));
#endif
+ free_zstring(inst);
return(NULLZLT);
}
i = (rhi + rlo) >> 1; /* split the diff */