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
This commit is contained in:
Jaehyun Cho 2020-02-24 15:52:25 +01:00 committed by Daniel Kolesa
parent aed480c809
commit 4f88dfd10d
1 changed files with 4 additions and 1 deletions

View File

@ -529,7 +529,10 @@ eval_exp(const Eolian_Unit *unit, Eolian_Expression *expr,
/* assert int here, as we're clearly dealing with enum */
if (!(mask & EOLIAN_MASK_INT))
return expr_type_error(expr, EOLIAN_MASK_INT, mask);
{
free(fulln);
return expr_type_error(expr, EOLIAN_MASK_INT, mask);
}
etpd = eolian_unit_alias_by_name_get(unit, fulln);
if (etpd && cb) cb((const Eolian_Object *)etpd, data);