Re: [PHP-DEV] Freeing $1 from zend_language_parser.y

2011-11-18 Thread Felipe Pena
2011/11/18 Clint M Priest : > Is there any reason I would have to free a pointer from the language_parser > if I am just storing a reference to $1 > > I'm doing this: > CG(accessor_node) = &$1; > This doesn't looks right, as &$1 points to the local variable in yyparse(). > And in doing so it is

[PHP-DEV] Freeing $1 from zend_language_parser.y

2011-11-18 Thread Clint M Priest
Is there any reason I would have to free a pointer from the language_parser if I am just storing a reference to $1 I'm doing this: CG(accessor_node) = &$1; And in doing so it is causing a memory leak, only if I add: efree($1.u.constant.value.str.val); Does that memory leak go away. -Clint