From: Fabian Keil Date: Wed, 28 Nov 2007 17:57:01 +0000 (+0000) Subject: Fix double free in cgi_edit_actions_list(). X-Git-Tag: v_3_0_7~29 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=0e16b501d02a83c68b60813072513e8cd7bb54c8;p=privoxy.git Fix double free in cgi_edit_actions_list(). Reported by adlab in BR#1840145. --- diff --git a/cgiedit.c b/cgiedit.c index 5bc5c0d0..190c1a19 100644 --- a/cgiedit.c +++ b/cgiedit.c @@ -1,4 +1,4 @@ -const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.56 2007/08/05 13:47:03 fabiankeil Exp $"; +const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.57 2007/10/27 13:32:23 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgiedit.c,v $ @@ -42,6 +42,10 @@ const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.56 2007/08/05 13:47:03 fabiankeil * * Revisions : * $Log: cgiedit.c,v $ + * Revision 1.57 2007/10/27 13:32:23 fabiankeil + * Plug minor 5-year-old memory leak. Spotted by + * Valgrind and triggered by Privoxy-Regression-Test. + * * Revision 1.56 2007/08/05 13:47:03 fabiankeil * #1763173 from Stefan Huehner: s@const static@static const@. * @@ -2835,7 +2839,6 @@ jb_err cgi_edit_actions_list(struct client_state *csp, free(url_template); edit_free_file(file); free_map(exports); - free(url_template); return err; }