diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-05-14 16:12:06 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-05-14 16:12:06 +0000 |
commit | 41da69f20f010b40e74ff5cfa2bbc755dbb4626d (patch) | |
tree | 1b4ba22319ed660be3bbaa10fd22b37dcf9464e9 | |
parent | 879cbe796126cda413bd02a90b50539fe3b3ea1c (diff) | |
download | php-git-41da69f20f010b40e74ff5cfa2bbc755dbb4626d.tar.gz |
MFH: Fixed possible memory leak inside popen().
-rw-r--r-- | ext/standard/file.c | 1 |
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 { |