eo: free vtable when erroring out

if there is a error when settings API to the vtable, free the vtable
instead of leaking it.

CID 1422015

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11580
This commit is contained in:
Marcel Hollerbach 2020-03-24 15:48:20 +01:00
parent 670cfb14fc
commit 39347f45aa
1 changed files with 1 additions and 0 deletions

View File

@ -1866,6 +1866,7 @@ efl_object_override(Eo *eo_id, const Efl_Object_Ops *ops)
else
{
_vtable_free(vtable, &obj->klass->vtable);
free(vtable);
}
goto err;