Fix memory leak in GetModule.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
26afeac0c7
commit
07d8cddbde
1 changed files with 2 additions and 1 deletions
|
|
@ -190,7 +190,8 @@ static swig_module_info *SWIG_Php4_GetModule() {
|
|||
ret = (swig_module_info *) pointer->value.lval;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
FREE_ZVAL(pointer);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void SWIG_Php4_SetModule(swig_module_info *pointer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue