summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-05-14 16:12:06 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-05-14 16:12:06 +0000
commit41da69f20f010b40e74ff5cfa2bbc755dbb4626d (patch)
tree1b4ba22319ed660be3bbaa10fd22b37dcf9464e9
parent879cbe796126cda413bd02a90b50539fe3b3ea1c (diff)
downloadphp-git-41da69f20f010b40e74ff5cfa2bbc755dbb4626d.tar.gz
MFH: 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 3741bb6bbf..6b2aa26f7e 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1224,6 +1224,7 @@ PHP_FUNCTION(popen)
if (!fp) {
php_error_docref2(NULL TSRMLS_CC, buf, p, E_WARNING, "%s", strerror(errno));
+ efree(p);
RETURN_FALSE;
}
} else {