]> granicus.if.org Git - php/commitdiff
Fix potential double free with phpdbg
authorBob Weinand <bobwei9@hotmail.com>
Tue, 3 May 2016 11:36:21 +0000 (13:36 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Tue, 3 May 2016 11:36:41 +0000 (13:36 +0200)
sapi/phpdbg/phpdbg_list.c

index 2e97ad4b73606d3a8eb047ab8903ae7fde15d71f..e31fe199f2e9909f3b3f93289d70787ed190ef06 100644 (file)
@@ -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;
 }