From d052187510a830fd17cec2155ba2d00cbb56e621 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 12 Jan 2010 21:02:26 +0000 Subject: [PATCH] * fix memleak * fix template reference --- webcit/static/t/aide/edituser/box_select.html | 2 +- webcit/useredit.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/webcit/static/t/aide/edituser/box_select.html b/webcit/static/t/aide/edituser/box_select.html index e984a0361..1016faade 100644 --- a/webcit/static/t/aide/edituser/box_select.html +++ b/webcit/static/t/aide/edituser/box_select.html @@ -5,7 +5,7 @@

"> diff --git a/webcit/useredit.c b/webcit/useredit.c index 02409c081..acc763ee3 100644 --- a/webcit/useredit.c +++ b/webcit/useredit.c @@ -255,7 +255,7 @@ HashList *iterate_load_userlist(StrBuf *Target, WCTemplputParams *TP) { int Done = 0; CompareFunc SortIt; - HashList *Hash; + HashList *Hash = NULL; StrBuf *Buf; UserListEntry* ul; char nnn[64]; @@ -290,10 +290,9 @@ HashList *iterate_load_userlist(StrBuf *Target, WCTemplputParams *TP) SortByPayload(Hash, SortIt); else SortByPayload(Hash, CompareUID); - return Hash; } FreeStrBuf(&Buf); - return NULL; + return Hash; } -- 2.30.2