From 2073b38b0f04e3637a25bf9ed74b3146ce24f759 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 20 Dec 2006 22:42:59 +0000 Subject: [PATCH] fix double free on error --- ext/standard/file.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.50.1