From: Ilia Alshanetsky Date: Fri, 14 May 2004 16:12:03 +0000 (+0000) Subject: Fixed possible memory leak inside popen(). X-Git-Tag: RELEASE_0_1~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b4dc50c011f3783e1510b7e43e01e8047c39e99;p=php Fixed possible memory leak inside popen(). --- diff --git a/ext/standard/file.c b/ext/standard/file.c index f650c5fb3d..420558a59e 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -838,6 +838,7 @@ PHP_FUNCTION(popen) if (!fp) { php_error_docref2(NULL TSRMLS_CC, buf, p, E_WARNING, "%s", strerror(errno)); + efree(p); RETURN_FALSE; } } else {