From: Nikita Popov Date: Sat, 26 Apr 2014 09:26:37 +0000 (+0200) Subject: Fix leak I introduced X-Git-Tag: POST_PHPNG_MERGE~412^2~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c93a7e078f7ea300c4a141ab2226eb63e97497a;p=php Fix leak I introduced --- diff --git a/ext/standard/file.c b/ext/standard/file.c index afd7cba000..c14a0d7f97 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -664,6 +664,7 @@ PHP_FUNCTION(file_put_contents) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only %d of %d bytes written, possibly out of free disk space", bytes_written, str->len); } numbytes = -1; + STR_RELEASE(str); break; } }