[PHP] Fix memory leak in PHP OUTPUT typemaps. Reported by Hitoshi
Amano in SF#2826322. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4b7478ac15
commit
1f01eb5d7d
2 changed files with 5 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ t_output_helper( zval **target, zval *o) {
|
|||
}
|
||||
if ( (*target)->type == IS_NULL ) {
|
||||
REPLACE_ZVAL_VALUE(target,o,1);
|
||||
FREE_ZVAL(o);
|
||||
return;
|
||||
}
|
||||
zval *tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue