From cfc6f877ce1d1968ee8fd27efe86dec4ed984aef Mon Sep 17 00:00:00 2001 From: Lucien Van Elsen Date: Mon, 10 Aug 1992 09:24:14 +0000 Subject: fix leaks in ulogin_setup and ulogin_find --- server/uloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/uloc.c') 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 */ -- cgit v1.2.3