]> granicus.if.org Git - php/commitdiff
Fix bug #61106 Segfault when using header_register_callback
authorNikita Popov <nikic@php.net>
Fri, 2 Mar 2012 08:04:51 +0000 (08:04 +0000)
committerNikita Popov <nikic@php.net>
Fri, 2 Mar 2012 08:04:51 +0000 (08:04 +0000)
The callback was double dtored

main/SAPI.c

index 57516798d463b640166254e75c12f29eaa48fd50..0fbf5257c107d03730da757909b91152bd17e5ef 100644 (file)
@@ -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)) {