summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-24 15:48:20 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-24 20:41:37 +0100
commit39347f45aa9f58684643dadde3d4f95ba5bd6f5c (patch)
treec0967b5ae3059d8465c9a75d7ccbe9b914dc00f1
parent670cfb14fcf03ba25221c630d5237750cca52acb (diff)
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
-rw-r--r--src/lib/eo/eo.c1
1 files changed, 1 insertions, 0 deletions
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)
1866 else 1866 else
1867 { 1867 {
1868 _vtable_free(vtable, &obj->klass->vtable); 1868 _vtable_free(vtable, &obj->klass->vtable);
1869 free(vtable);
1869 } 1870 }
1870 1871
1871 goto err; 1872 goto err;