From: Antony Dovgal Date: Wed, 20 Dec 2006 22:42:59 +0000 (+0000) Subject: fix double free on error X-Git-Tag: RELEASE_1_0_0RC1~598 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2073b38b0f04e3637a25bf9ed74b3146ce24f759;p=php fix double free on error --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 6188272c7d..b7800456a3 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1062,7 +1062,6 @@ PHP_FUNCTION(popen) fp = VCWD_POPEN(command, posix_mode); if (!fp) { php_error_docref2(NULL TSRMLS_CC, command, mode, E_WARNING, "%s", strerror(errno)); - efree(posix_mode); RETVAL_FALSE; } else { php_stream *stream = php_stream_fopen_from_pipe(fp, mode);