From 0ac93da66a0f3071b62c350bd0f1367cecd4e704 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 18 Oct 2014 11:28:49 +0000 Subject: [PATCH] Fix memory leak in cgi_show_file() CID 66362. --- cgisimple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2