summaryrefslogtreecommitdiff
path: root/recipes/sscep/files/memleak.patch
diff options
context:
space:
mode:
authorEvan Doiron <edoiron@cbnco.com>2009-08-26 05:25:06 +0000
committerMichael Smith <msmith@cbnco.com>2009-08-31 11:57:50 -0400
commit91c6116d7fc0d138eccb979f1135ee686fe38bbb (patch)
tree6694948734beb743c7e894cc17e0fc2264c057eb /recipes/sscep/files/memleak.patch
parent199c29075ef45515047c02555bc6fd1ff2f8ee8c (diff)
add sscep: v0.0.2008.1211
http://patchwork.openembedded.org/patch/998/ Signed-off-by: Evan Doiron <edoiron@cbnco.com> Signed-off-by: Michael Smith <msmith@cbnco.com>
Diffstat (limited to 'recipes/sscep/files/memleak.patch')
-rw-r--r--recipes/sscep/files/memleak.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes/sscep/files/memleak.patch b/recipes/sscep/files/memleak.patch
new file mode 100644
index 0000000000..59256a49c8
--- /dev/null
+++ b/recipes/sscep/files/memleak.patch
@@ -0,0 +1,25 @@
+commit ec9b27537400def0bee1ebbbdd69f2cf5486a99a
+Author: michael <michael@ea9f5d8b-f83d-0410-bf23-ec2180cbb196>
+Date: Mon May 9 16:10:54 2005 +0000
+
+ Maybe fix a memory leak
+
+
+ git-svn-id: file:///usr/local/httpd/SourceForge/home/users/michael/svn/svnrepos/os/packages/sscep/trunk@15 ea9f5d8b-f83d-0410-bf23-ec2180cbb196
+
+diff --git a/sscep.c b/sscep.c
+index 637f1f0..b8f3289 100644
+--- a/sscep.c
++++ b/sscep.c
+@@ -539,7 +539,10 @@ not_enroll:
+ "GET %s%s?operation="
+ "PKIOperation&message="
+ "%s HTTP/1.0\r\n\r\n",
+- p_flag ? "" : "/", dir_name, p);
++ p_flag ? "" : "/", dir_name, p);
++
++ free(p);
++ p = NULL;
+
+ if (d_flag)
+ fprintf(stdout, "%s: scep msg: %s",