[PATCH]Memory leaking when calling an overloaded class member
| From: | brad lafountain | Date: | Wed, 01 May 2002 23:14:33 +0000 |
| Subject: | [PATCH]Memory leaking when calling an overloaded class member | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-83578@lists.php.net to get a copy of this message | ||
I get this error:
f:\php-4.2.0\zend\zend_execute.c(1503) : Freeing 0x00DDD278 (11 bytes),
script=test2.php
f:\php-4.2.0\zend\zend_variables.c(106) : Actual location (location was
relayed)
Last leak repeated 1 time
i took alook at the code..
here is where it creates the memory
tmp = *function_name;
zval_copy_ctor(&tmp);
here shoud be the delete..
zval_dtor(&tmp);
EX(fbc) = function;
overloaded_function_call_cont:
FREE_OP(EX(Ts), &EX(opline)->op2, EG(free_op2));
but as you see the goto overloaded_function_call_cont;
skips the free.
Patch is supplied
_brad_
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com