diff --git a/Lib/php4/php4run.swg b/Lib/php4/php4run.swg index 1620dea9e..ec19e5506 100644 --- a/Lib/php4/php4run.swg +++ b/Lib/php4/php4run.swg @@ -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) {