From 39347f45aa9f58684643dadde3d4f95ba5bd6f5c Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Tue, 24 Mar 2020 15:48:20 +0100 Subject: [PATCH] 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 --- src/lib/eo/eo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 2bdf284f5f..9f1c4f03ba 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;