From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 27 Oct 2007 13:32:23 +0000 (+0000)
Subject: Plug minor 5-year-old memory leak. Spotted by
X-Git-Tag: v_3_0_7~113
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/documentation.html?a=commitdiff_plain;h=4120bcd2b919477044a5de7c99368709630877c6;p=privoxy.git

Plug minor 5-year-old memory leak. Spotted by
Valgrind and triggered by Privoxy-Regression-Test.
---

diff --git a/cgiedit.c b/cgiedit.c
index 54d2b3fc..5bc5c0d0 100644
--- a/cgiedit.c
+++ b/cgiedit.c
@@ -1,4 +1,4 @@
-const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.55 2007/05/31 11:50:20 fabiankeil Exp $";
+const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.56 2007/08/05 13:47:03 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgiedit.c,v $
@@ -42,6 +42,9 @@ const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.55 2007/05/31 11:50:20 fabiankeil
  *
  * Revisions   :
  *    $Log: cgiedit.c,v $
+ *    Revision 1.56  2007/08/05 13:47:03  fabiankeil
+ *    #1763173 from Stefan Huehner: s@const static@static const@.
+ *
  *    Revision 1.55  2007/05/31 11:50:20  fabiankeil
  *    Re-enable support for old-school URLs like
  *    http://config.privoxy.org/edit-actions-list?f=default
@@ -2651,6 +2654,7 @@ jb_err cgi_edit_actions_list(struct client_state *csp,
    if (err)
    {
       /* No filename specified, can't read file, or out of memory. */
+      free_map(exports);
       return (err == JB_ERR_FILE ? JB_ERR_OK : err);
    }