summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/file.c')
-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 df73e93de9..d23a3a7d26 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1904,6 +1904,7 @@ PHP_FUNCTION(fgetcsv) {
memset(buf,0,len+1);
if (FP_FGETS(buf, len, socketd, (FILE*)what, issock) == NULL) {
efree(lineEnd); efree(temp); efree(buf);
+ zval_dtor(return_value);
RETURN_FALSE;
}
bptr = buf;