mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix memory leak when compiling files in phpdbg
This commit is contained in:
parent
428ef50838
commit
466870e2b0
1 changed files with 2 additions and 2 deletions
|
@ -312,8 +312,8 @@ zend_op_array *phpdbg_init_compile_file(zend_file_handle *file, int type) {
|
|||
if (file->free_filename) {
|
||||
efree((char *) file->filename);
|
||||
}
|
||||
file->free_filename = 1;
|
||||
file->filename = estrdup(filename);
|
||||
file->free_filename = 0;
|
||||
file->filename = filename;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue