* fix memleak
authorWilfried Göesgens <willi@citadel.org>
Tue, 12 Jan 2010 21:02:26 +0000 (21:02 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 12 Jan 2010 21:02:26 +0000 (21:02 +0000)
* fix template reference

webcit/static/t/aide/edituser/box_select.html
webcit/useredit.c

index e984a0361b4ae354d7d348e163628460c663a3f3..1016faadef6d1daebd7955983143c6df3d331a70 100644 (file)
@@ -5,7 +5,7 @@
   <form method="POST" action="display_edituser">
    <input type="hidden" name="nonce" value="<?NONCE>">
    <select name="username" size=10 style="width:100%">
-<?ITERATE("USERLIST", "section_userlist_select")>
+<?ITERATE("USERLIST", ="aide_edituser_section")>
 </select><br />
  
 <input type="submit" name="edit_config_button" value="<?_("Edit configuration")>">
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;
 }