free_zval not working?
| From: | Robin Ericsson | Date: | Tue, 22 Jan 2002 08:27:53 +0000 |
| Subject: | free_zval not working? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-77735@lists.php.net to get a copy of this message | ||
I'm using this on php 4.0.6, it know it's old, but things will break if
I upgrade :)
This is the code:
zval *z_return;
MAKE_STD_ZVAL(z_return);
php_char_to_str(retval, strlen(retval), '\n', "<br>\n", 5, z_return);
FREE_ZVAL(z_return);
This code gives me:
string.c(2122) : Freeing 0x08257CEC (134 bytes), script=nn.php
which is the new string allocated inside php_char_to_str(), howcome this
memory isn't freed with FREE_ZVAL?
regards
robin