]> granicus.if.org Git - php/commitdiff
fix memory leak
authorAnatol Belski <ab@php.net>
Tue, 8 Nov 2016 11:12:58 +0000 (12:12 +0100)
committerAnatol Belski <ab@php.net>
Tue, 8 Nov 2016 11:12:58 +0000 (12:12 +0100)
ext/wddx/wddx.c

index 59cc8ddda8a955918e260f8249996c5bf244717e..069ea122ce3b4993aa3a97da1e9f4ce96b7e47ba 100644 (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 {