]> granicus.if.org Git - php/commitdiff
fix leak
authorAnatol Belski <ab@php.net>
Tue, 21 Jun 2016 10:29:41 +0000 (12:29 +0200)
committerAnatol Belski <ab@php.net>
Tue, 21 Jun 2016 10:29:41 +0000 (12:29 +0200)
ext/wddx/wddx.c

index 2cbad93c3e01d7f1da7723e61563c0d4baa09dc8..0a6c4dcb1e77871b9a0397619e17ef44ca7baec4 100644 (file)
@@ -1095,6 +1095,10 @@ static void php_wddx_process_data(void *user_data, const XML_Char *s, int len)
 
                        case ST_BOOLEAN:
                                if(!ent->data) {
+                                       if (ent->varname) {
+                                               efree(ent->varname);
+                                               ent->varname = NULL;
+                                       }
                                        break;
                                }
                                if (!strcmp(s, "true")) {