Skip to content

Commit 420f3dc

Browse files
authored
standard: Move freeing of temp buffer and use efree variant (#20738)
1 parent 4315c3a commit 420f3dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/standard/file.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,11 +663,10 @@ PHP_FUNCTION(file)
663663
p = e;
664664
goto parse_eol;
665665
}
666-
}
667666

668-
if (target_buf) {
669-
zend_string_free(target_buf);
667+
zend_string_efree(target_buf);
670668
}
669+
671670
php_stream_close(stream);
672671
}
673672
/* }}} */

0 commit comments

Comments
 (0)