From 7c93a7e078f7ea300c4a141ab2226eb63e97497a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 26 Apr 2014 11:26:37 +0200 Subject: [PATCH] Fix leak I introduced --- ext/standard/file.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.40.0