1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00

fix memory leak

This commit is contained in:
Anatol Belski
2016-11-08 12:12:58 +01:00
parent 33766347cb
commit d6d08f97cd
+1
View File
@@ -1012,6 +1012,7 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name)
}
if (pce != &PHP_IC_ENTRY && ((*pce)->serialize || (*pce)->unserialize)) {
zval_ptr_dtor(&ent2->data);
ent2->data = NULL;
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Class %s can not be unserialized", Z_STRVAL_P(ent1->data));
} else {