]> granicus.if.org Git - php/commitdiff
(fgetcsv) fixed leak
authorThies C. Arntzen <thies@php.net>
Tue, 27 Jun 2000 09:55:52 +0000 (09:55 +0000)
committerThies C. Arntzen <thies@php.net>
Tue, 27 Jun 2000 09:55:52 +0000 (09:55 +0000)
ext/standard/file.c

index df73e93de9c48b63286623906f4812ba4036e39b..d23a3a7d26c5159a5d3eaee0970db1af848f66eb 100644 (file)
@@ -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;