From f465b219b5c686d0e6d84be234fc8129bdab3246 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 2 Mar 2012 08:04:51 +0000 Subject: [PATCH] Fix bug #61106 Segfault when using header_register_callback The callback was double dtored --- main/SAPI.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/main/SAPI.c b/main/SAPI.c index 7ad235e725..74fdbb2c4a 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -494,9 +494,6 @@ static void sapi_send_headers_free(TSRMLS_D) SAPI_API void sapi_deactivate(TSRMLS_D) { zend_llist_destroy(&SG(sapi_headers).headers); - if (SG(callback_func)) { - zval_ptr_dtor(&SG(callback_func)); - } if (SG(request_info).post_data) { efree(SG(request_info).post_data); } else if (SG(server_context)) { -- 2.40.0