From: Wilfried Göesgens Date: Tue, 10 Aug 2010 21:23:01 +0000 (+0000) Subject: * GetWhoKnowsHash (): fix leaks. X-Git-Tag: v8.01~936 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=2b42b9962d1772e89f45a9ff2f08c0587dcc10fd * GetWhoKnowsHash (): fix leaks. --- diff --git a/webcit/roomops.c b/webcit/roomops.c index 9fe1dcc27..1db499d61 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -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; }