summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Carlier2016-05-24 13:33:45 +0100
committerDavid Carlier2016-05-24 13:33:45 +0100
commit20d333da41f9451f5713e9723ad79e6566e290b7 (patch)
treeab3fb2b562e0aac85456b7326263849e7da91cac
parenta27df15eff8b9d971e0c2c7730125b5cf99dc683 (diff)
possible mem leak when the promise is discarded
-rw-r--r--pledge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pledge.c b/pledge.c
index b5ceaf8..fed0380 100644
--- a/pledge.c
+++ b/pledge.c
@@ -83,6 +83,7 @@ static PHP_FUNCTION(suhosin_pledge)
83 if (pm == NULL) { 83 if (pm == NULL) {
84 if (strcmp(p, "stdio") != 0) 84 if (strcmp(p, "stdio") != 0)
85 php_error_docref(NULL TSRMLS_CC, E_WARNING, "pledge: %s invalid or forbidden promise", p); 85 php_error_docref(NULL TSRMLS_CC, E_WARNING, "pledge: %s invalid or forbidden promise", p);
86 efree(p);
86 continue; 87 continue;
87 } 88 }
88 efree(p); 89 efree(p);