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

cgisimple.c

index a8fd826..d7c6ccd 100644 (file)
@@ -1353,6 +1353,7 @@ jb_err cgi_show_status(struct client_state *csp,
    else
    {
       if (!err) err = map(exports, "actions-filenames", 1, "<tr><td>None specified</td></tr>", 1);
+      freez(s);
    }
 
    /*