summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2020-02-24 15:52:25 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2020-02-24 15:52:25 +0100
commit4f88dfd10db05568b912e2ab76f62af5ab78aa23 (patch)
tree530210b34e68166d65e73938d6d0f4729ceaea56 /src/lib/eolian
parentaed480c8093ab4dfa3be156dd235c7392db8fa63 (diff)
database_expr: fix memory leak when type error happens
Summary: Memory leak is fixed when type error happens. Reviewers: q66 Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11400
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/database_expr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eolian/database_expr.c b/src/lib/eolian/database_expr.c
index 38794a2f3c..b6d79bb19c 100644
--- a/src/lib/eolian/database_expr.c
+++ b/src/lib/eolian/database_expr.c
@@ -529,7 +529,10 @@ eval_exp(const Eolian_Unit *unit, Eolian_Expression *expr,
529 529
530 /* assert int here, as we're clearly dealing with enum */ 530 /* assert int here, as we're clearly dealing with enum */
531 if (!(mask & EOLIAN_MASK_INT)) 531 if (!(mask & EOLIAN_MASK_INT))
532 return expr_type_error(expr, EOLIAN_MASK_INT, mask); 532 {
533 free(fulln);
534 return expr_type_error(expr, EOLIAN_MASK_INT, mask);
535 }
533 536
534 etpd = eolian_unit_alias_by_name_get(unit, fulln); 537 etpd = eolian_unit_alias_by_name_get(unit, fulln);
535 if (etpd && cb) cb((const Eolian_Object *)etpd, data); 538 if (etpd && cb) cb((const Eolian_Object *)etpd, data);