cgi_show_status: Don't leak memory when no filter files are specified
authorFabian Keil <fk@fabiankeil.de>
Sun, 30 Aug 2020 07:24:48 +0000 (09:24 +0200)
committerFabian Keil <fk@fabiankeil.de>
Tue, 1 Sep 2020 10:22:42 +0000 (12:22 +0200)
Sponsored by: Robert Klemme

cgisimple.c

index 0077e7c..a8fd826 100644 (file)
@@ -1380,6 +1380,7 @@ jb_err cgi_show_status(struct client_state *csp,
    {
       if (!err) err = map(exports, "re-filter-filenames", 1, "<tr><td>None specified</td></tr>", 1);
       if (!err) err = map_block_killer(exports, "have-filterfile");
+      freez(s);
    }
 
 #ifdef FEATURE_TRUST