diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-05-14 16:12:03 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-05-14 16:12:03 +0000 |
commit | 5b4dc50c011f3783e1510b7e43e01e8047c39e99 (patch) | |
tree | 46ac9cd65c6fec2d8276a4faa5d65900459b6363 | |
parent | 01e92c81e7107807dbf4e135557601957d5beaa0 (diff) | |
download | php-git-5b4dc50c011f3783e1510b7e43e01e8047c39e99.tar.gz |
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 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 { |