]> code.citadel.org Git - citadel.git/commitdiff
* fix leak in URL handler
authorWilfried Göesgens <willi@citadel.org>
Sun, 24 Aug 2008 19:42:28 +0000 (19:42 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 24 Aug 2008 19:42:28 +0000 (19:42 +0000)
webcit/webcit.c

index 12b3b1e8f0bb7e1ef11681714ecda81a01998e4e..33ade8044e206290a59bdcfa861149b453588d0e 100644 (file)
@@ -1505,6 +1505,7 @@ void session_loop(struct httprequest *req)
                        //cmd[len - a] = '\0';
                        Params = _NewConstStrBuf(&cmd[a + 1], len - a);
                        addurls(Params);
+                       FreeStrBuf(&Params);
                        cmd[a] = 0;
                        len = a - 1;
                }