forked from enlightenment/efl
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:
parent
aed480c809
commit
4f88dfd10d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue