]> granicus.if.org Git - php/commitdiff
Fix leak I introduced
authorNikita Popov <nikic@php.net>
Sat, 26 Apr 2014 09:26:37 +0000 (11:26 +0200)
committerNikita Popov <nikic@php.net>
Sat, 26 Apr 2014 09:26:37 +0000 (11:26 +0200)
ext/standard/file.c

index afd7cba0008f9a3b631f81f84d3cd006a5044466..c14a0d7f97410b549c16dd35c863266fb8aaaa1c 100644 (file)
@@ -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;
                                                }
                                        }