Skip to content

Commit e9e1520

Browse files
committed
Free opened_path when opened_path_len >= MAXPATHLEN
1 parent f94c11f commit e9e1520

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
@@ -157,6 +157,7 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, zend_st
157157
free(cwdw);
158158
free(pfxw);
159159
efree(new_state.cwd);
160+
free(opened_path);
160161
return -1;
161162
}
162163
assert(strlen(opened_path) == opened_path_len);

0 commit comments

Comments
 (0)