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:
Kevin Ruland 2006-01-31 16:38:14 +00:00
commit 07d8cddbde

View file

@ -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) {