diff options
| author | David Carlier | 2016-05-24 13:33:45 +0100 |
|---|---|---|
| committer | David Carlier | 2016-05-24 13:33:45 +0100 |
| commit | 20d333da41f9451f5713e9723ad79e6566e290b7 (patch) | |
| tree | ab3fb2b562e0aac85456b7326263849e7da91cac | |
| parent | a27df15eff8b9d971e0c2c7730125b5cf99dc683 (diff) | |
possible mem leak when the promise is discarded
| -rw-r--r-- | pledge.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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); |
