From: Fabian Keil Date: Sat, 18 Oct 2014 11:28:49 +0000 (+0000) Subject: Fix memory leak in cgi_show_file() X-Git-Tag: v_3_0_22~49 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=0ac93da66a0f3071b62c350bd0f1367cecd4e704 Fix memory leak in cgi_show_file() CID 66362. --- diff --git a/cgisimple.c b/cgisimple.c index 4a93dc78..f720ea83 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.129 2014/10/18 11:25:13 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.130 2014/10/18 11:26:31 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -1914,6 +1914,7 @@ static jb_err cgi_show_file(struct client_state *csp, s = html_encode_and_free_original(s); if (NULL == s) { + free_map(exports); return JB_ERR_MEMORY; }