cvs: ZendEngine2 / zend_API.c

From: Date: Thu, 27 Oct 2005 14:14:34 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4284@lists.php.net to get a copy of this message
iliaa Thu Oct 27 10:14:34 2005 EDT Modified files: /ZendEngine2 zend_API.c Log: MFB51: Fixed memory leak on error http://cvs.php.net/diff.php/ZendEngine2/zend_API.c?r1=1.322&r2=1.323&ty=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.322 ZendEngine2/zend_API.c:1.323 --- ZendEngine2/zend_API.c:1.322 Tue Oct 25 19:11:26 2005 +++ ZendEngine2/zend_API.c Thu Oct 27 10:14:33 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.322 2005/10/25 23:11:26 helly Exp $ */ +/* $Id: zend_API.c,v 1.323 2005/10/27 14:14:33 iliaa Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -2105,10 +2105,14 @@ } } else { if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { + efree(lc_class_name); zend_error(error_type, "Interface %s cannot contain non abstract method %s()", scope->name, ptr->fname); return FAILURE; } if (!internal_function->handler) { + if (scope) { + efree(lc_class_name); + } zend_error(error_type, "Method %s%s%s() cannot be a NULL function", scope ? scope->name : "", scope ? "::" : "", ptr->fname); zend_unregister_functions(functions, count, target_function_table TSRMLS_CC); return FAILURE;

« previous php.zend-engine.cvs (#4284) next »