From f1e4b9ea0debd3f403b5854d80ef06b54fa8ce69 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 4 Jan 2013 18:42:04 +0800 Subject: [PATCH] Fix memory leak --- yaf_dispatcher.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yaf_dispatcher.c b/yaf_dispatcher.c index 65c17cb5..5835ee9c 100644 --- a/yaf_dispatcher.c +++ b/yaf_dispatcher.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_dispatcher.c 328976 2013-01-04 10:30:40Z laruence $ */ +/* $Id: yaf_dispatcher.c 328978 2013-01-04 10:41:50Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -659,6 +659,8 @@ int yaf_dispatcher_handle(yaf_dispatcher_t *dispatcher, yaf_request_t *request, yaf_action_t *iaction; uint count = 0; + efree(func_name); + MAKE_STD_ZVAL(iaction); object_init_ex(iaction, ce); @@ -700,6 +702,7 @@ int yaf_dispatcher_handle(yaf_dispatcher_t *dispatcher, yaf_request_t *request, } zval_ptr_dtor(&ret); } else { + efree(func_name); zval_ptr_dtor(&icontroller); return 0; }