]> granicus.if.org Git - php/commitdiff
Really fix the de-allocation.
authorAndrei Zmievski <andrei@php.net>
Wed, 13 Sep 2000 15:31:50 +0000 (15:31 +0000)
committerAndrei Zmievski <andrei@php.net>
Wed, 13 Sep 2000 15:31:50 +0000 (15:31 +0000)
ext/wddx/wddx.c

index bce16d7f14cc48f88052c6d4565d862f8bb7af20..dcabe8d6b3c1ebc0f69aa870cd0527d996916616 100644 (file)
@@ -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;
                }