diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-05-19 13:11:20 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-05-19 13:11:20 +0400 |
commit | a21e6d6ed94af1166c9b6d0a9d2d05f90b9c81ec (patch) | |
tree | 3973c92b134e14d422e3aab6fc90c89e3b9f9cfe /ext/xmlrpc/xmlrpc-epi-php.c | |
parent | 35f23d9ee7f1260ee6a1625c2251a41f7529405c (diff) | |
download | php-git-a21e6d6ed94af1166c9b6d0a9d2d05f90b9c81ec.tar.gz |
Fixed double free
Diffstat (limited to 'ext/xmlrpc/xmlrpc-epi-php.c')
-rw-r--r-- | ext/xmlrpc/xmlrpc-epi-php.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c index ea0d3c27ec..9378529013 100644 --- a/ext/xmlrpc/xmlrpc-epi-php.c +++ b/ext/xmlrpc/xmlrpc-epi-php.c @@ -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--; } } |