From 09f24e08508959a0137fa6fae19ac58ba351daf0 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 57516798d4..0fbf5257c1 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.50.1