com php-src: Fix leak I introduced: ext/standard/file.c
| From: | Dmitry Stogov | Date: | Sat, 26 Apr 2014 09:26:37 +0000 |
| Subject: | com php-src: Fix leak I introduced: ext/standard/file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77269@lists.php.net to get a copy of this message | ||
Commit: 7c93a7e078f7ea300c4a141ab2226eb63e97497a
Author: Nikita Popov <nikic@php.net> Sat, 26 Apr 2014 11:26:37 +0200
Parents: 4cd97b3ebd89217094fad0ecabcc281cd35f8864
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7c93a7e078f7ea300c4a141ab2226eb63e97497a
Log:
Fix leak I introduced
Changed paths:
M ext/standard/file.c
Diff:
diff --git a/ext/standard/file.c b/ext/standard/file.c
index afd7cba..c14a0d7 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;
}
}