diff options
-rw-r--r-- | ext/wddx/wddx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 2cbad93c3e..0a6c4dcb1e 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -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")) { |