From: Fabian Keil Date: Sat, 18 Oct 2014 11:25:13 +0000 (+0000) Subject: Fix a theoretical memory leak in cgi_show_url_info() X-Git-Tag: v_3_0_22~61 X-Git-Url: http://www.privoxy.org/gitweb/templates.html?a=commitdiff_plain;h=e11bc95711b7da314179cb6ae3e37a0dd9e64738;p=privoxy.git Fix a theoretical memory leak in cgi_show_url_info() In the real world map_block_killer() is unlikely to run out of memory. CID 66392. --- diff --git a/cgisimple.c b/cgisimple.c index 9a89e6f6..514d2453 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.127 2014/06/03 10:28:39 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.128 2014/06/03 10:29:23 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -1167,6 +1167,7 @@ jb_err cgi_show_url_info(struct client_state *csp, map_block_killer(exports, "privoxy-is-toggled-off") ) { + freez(url_param); free_map(exports); return JB_ERR_MEMORY; }