summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-04-26 11:26:37 +0200
committerNikita Popov <nikic@php.net>2014-04-26 11:26:37 +0200
commit7c93a7e078f7ea300c4a141ab2226eb63e97497a (patch)
tree83138fbffc9b1187f5f9c9f05d7cc85ade885692
parent4cd97b3ebd89217094fad0ecabcc281cd35f8864 (diff)
downloadphp-git-7c93a7e078f7ea300c4a141ab2226eb63e97497a.tar.gz
Fix leak I introduced
-rw-r--r--ext/standard/file.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}