projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07a776c
)
Fix memory leak in cgi_show_file()
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 18 Oct 2014 11:28:49 +0000
(11:28 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 18 Oct 2014 11:28:49 +0000
(11:28 +0000)
CID 66362.
cgisimple.c
patch
|
blob
|
history
diff --git
a/cgisimple.c
b/cgisimple.c
index
4a93dc7
..
f720ea8
100644
(file)
--- a/
cgisimple.c
+++ b/
cgisimple.c
@@
-1,4
+1,4
@@
-const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.1
29 2014/10/18 11:25:13
fabiankeil Exp $";
+const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.1
30 2014/10/18 11:26:31
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
/*********************************************************************
*
* 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)
{
s = html_encode_and_free_original(s);
if (NULL == s)
{
+ free_map(exports);
return JB_ERR_MEMORY;
}
return JB_ERR_MEMORY;
}