com php-src: Fix potential double free with phpdbg: sapi/phpdbg/phpdbg_list.c
| From: | Bob Weinand | Date: | Tue, 03 May 2016 11:36:41 +0000 |
| Subject: | com php-src: Fix potential double free with phpdbg: sapi/phpdbg/phpdbg_list.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92006@lists.php.net to get a copy of this message | ||
Commit: 0f20e113c2fd9c5e96beb2723ba8b5c8eb43b182
Author: Bob Weinand <bobwei9@hotmail.com> Tue, 3 May 2016 13:36:21 +0200
Parents: d08df4442509d67400ac4edfa997f92712614f2c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0f20e113c2fd9c5e96beb2723ba8b5c8eb43b182
Log:
Fix potential double free with phpdbg
Changed paths:
M sapi/phpdbg/phpdbg_list.c
Diff:
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c
index 2e97ad4..e31fe19 100644
--- a/sapi/phpdbg/phpdbg_list.c
+++ b/sapi/phpdbg/phpdbg_list.c
@@ -291,6 +291,7 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) {
fake.opened_path = NULL;
zend_file_handle_dtor(&fake);
zend_file_handle_dtor(file);
+ file->type = -1;
return ret;
}