Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jan 4, 2013
1 parent cc70bda commit f1e4b9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yaf_dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f1e4b9e

Please sign in to comment.