From: Marcel Hollerbach Date: Tue, 24 Mar 2020 14:48:20 +0000 (+0100) Subject: eo: free vtable when erroring out X-Git-Tag: submit/tizen/20200405.220557~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d24f30e1061b9970c759071ae7293ca8a882a16;p=platform%2Fupstream%2Fefl.git 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 Differential Revision: https://phab.enlightenment.org/D11580 --- diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 060b076..3bc70da 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -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;