* GetWhoKnowsHash (): fix leaks.
authorWilfried Göesgens <willi@citadel.org>
Tue, 10 Aug 2010 21:23:01 +0000 (21:23 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 10 Aug 2010 21:23:01 +0000 (21:23 +0000)
webcit/roomops.c

index 9fe1dcc27b4bd28296577c466893b651f95af092..1db499d619e8a20eb19b8bbdd4ccba1f1055e9b2 100644 (file)
@@ -3441,7 +3441,6 @@ HashList *GetWhoKnowsHash(StrBuf *Target, WCTemplputParams *TP)
 
        serv_puts("WHOK");
        Line = NewStrBuf();
-       Token = NewStrBuf();
        StrBuf_ServGetln(Line);
        if (GetServerStatus(Line, &State) == 1) 
        {
@@ -3470,6 +3469,7 @@ HashList *GetWhoKnowsHash(StrBuf *Target, WCTemplputParams *TP)
                                     _("Higher access is required to access this function."), -1, 0);
 
 
+       FreeStrBuf(&Line);
        return Whok;
 }