summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-05-14 16:12:03 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-05-14 16:12:03 +0000
commit5b4dc50c011f3783e1510b7e43e01e8047c39e99 (patch)
tree46ac9cd65c6fec2d8276a4faa5d65900459b6363
parent01e92c81e7107807dbf4e135557601957d5beaa0 (diff)
downloadphp-git-5b4dc50c011f3783e1510b7e43e01e8047c39e99.tar.gz
Fixed possible memory leak inside popen().
-rw-r--r--ext/standard/file.c1
1 files changed, 1 insertions, 0 deletions
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 {