]> code.citadel.org Git - citadel.git/blobdiff - webcit/useredit.c
* fix memleak
[citadel.git] / webcit / useredit.c
index 02409c081621e9c7cd12e0fdcf3595bedc405d5b..acc763ee31ecd10c7517a4a2dc296807e58fb391 100644 (file)
@@ -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;
 }