From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 18 Oct 2014 11:27:04 +0000 (+0000)
Subject: Fix memory leak in pcrs_compile_dynamic_command()
X-Git-Tag: v_3_0_22~54
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/user-manual/static/gitweb.js?a=commitdiff_plain;h=084403a56d708c5006e683a1932c17e96181d0b3;p=privoxy.git

Fix memory leak in pcrs_compile_dynamic_command()

CID 66373.
---

diff --git a/pcrs.c b/pcrs.c
index d645538b..29fb78d2 100644
--- a/pcrs.c
+++ b/pcrs.c
@@ -1,4 +1,4 @@
-const char pcrs_rcs[] = "$Id: pcrs.c,v 1.43 2012/10/29 12:01:31 fabiankeil Exp $";
+const char pcrs_rcs[] = "$Id: pcrs.c,v 1.44 2014/10/18 11:25:24 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/pcrs.c,v $
@@ -1102,6 +1102,7 @@ pcrs_job *pcrs_compile_dynamic_command(char *pcrs_command, const struct pcrs_var
       {
          /* No proper delimiter found */
          *error = PCRS_ERR_CMDSYNTAX;
+         freez(pcrs_command_tmp);
          return NULL;
       }