Skip to content

Commit bed5dce

Browse files
committed
Free opened_path when opened_path_len >= MAXPATHLEN
1 parent 7c1e461 commit bed5dce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/php_open_temporary_file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, zend_st
186186
free(random_prefix_w);
187187
efree(random_prefix);
188188
efree(new_state.cwd);
189+
free(opened_path);
189190
return -1;
190191
}
191192
assert(strlen(opened_path) == opened_path_len);

0 commit comments

Comments
 (0)