From 09ac5ed7484a2ee5fbd37ad23df6763f6c2c5f66 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Wed, 13 Sep 2000 15:31:50 +0000 Subject: [PATCH] Really fix the de-allocation. --- ext/wddx/wddx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index bce16d7f14..dcabe8d6b3 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -746,6 +746,7 @@ static void php_wddx_pop_element(void *user_data, const char *name) unsigned char *new_str; new_str = php_base64_decode(Z_STRVAL_P(ent1->data), Z_STRLEN_P(ent1->data), &new_len); + STR_FREE(Z_STRVAL_P(ent1->data)); Z_STRVAL_P(ent1->data) = new_str; Z_STRLEN_P(ent1->data) = new_len; } -- 2.50.1