mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed double free
This commit is contained in:
parent
35f23d9ee7
commit
a21e6d6ed9
1 changed files with 2 additions and 0 deletions
|
@ -281,7 +281,9 @@ static void destroy_server_data(xmlrpc_server_data *server TSRMLS_DC)
|
|||
static void xmlrpc_server_destructor(zend_resource *rsrc TSRMLS_DC)
|
||||
{
|
||||
if (rsrc && rsrc->ptr) {
|
||||
rsrc->gc.refcount++;
|
||||
destroy_server_data((xmlrpc_server_data*) rsrc->ptr TSRMLS_CC);
|
||||
rsrc->gc.refcount--;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue