From 5e91b35ee3abb68128f4781fb84e95a2ed20c840 Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 28 Aug 2010 14:46:44 +0000 Subject: [PATCH] fix possible leak source. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/embryo@51699 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/embryo_amx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/embryo_amx.c b/src/lib/embryo_amx.c index 2691189..97c0b12 100644 --- a/src/lib/embryo_amx.c +++ b/src/lib/embryo_amx.c @@ -2329,9 +2329,9 @@ embryo_parameter_cell_array_push(Embryo_Program *ep, Embryo_Cell *cells, int num Embryo_Param *pr; Embryo_Cell *cell_array; - cell_array = malloc(num * sizeof(Embryo_Cell)); if ((!cells) || (num <= 0)) return embryo_parameter_cell_push(ep, 0); + cell_array = malloc(num * sizeof(Embryo_Cell)); ep->params_size++; if (ep->params_size > ep->params_alloc) { -- 2.7.4