summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-08-16 13:33:27 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-08-16 13:33:45 +0200
commit9f2e2f99c6669a96fc2d4488af9613e7498c80ae (patch)
tree7f45c546e90f6ef28d3756f29993f848afc0e13c /src/lib/eolian
parentf5aa672853d4fe70a60508e9abc796b0246915ba (diff)
eolian: fix function pointer leak as reported by asan
Ref T8140.
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/database_type.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eolian/database_type.c b/src/lib/eolian/database_type.c
index b0d1ac1bee..70a8ad6354 100644
--- a/src/lib/eolian/database_type.c
+++ b/src/lib/eolian/database_type.c
@@ -27,7 +27,8 @@ database_typedecl_del(Eolian_Typedecl *tp)
27 database_type_del(tp->base_type); 27 database_type_del(tp->base_type);
28 if (tp->fields) eina_hash_free(tp->fields); 28 if (tp->fields) eina_hash_free(tp->fields);
29 if (tp->field_list) eina_list_free(tp->field_list); 29 if (tp->field_list) eina_list_free(tp->field_list);
30 if (tp->freefunc) eina_stringshare_del(tp->freefunc); 30 database_function_del(tp->function_pointer);
31 eina_stringshare_del(tp->freefunc);
31 database_doc_del(tp->doc); 32 database_doc_del(tp->doc);
32 free(tp); 33 free(tp);
33} 34}