summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-11-15 13:36:30 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2019-11-15 13:36:57 +0100
commita1cb493d4f4f1067d8c9080b958891261e0fde84 (patch)
tree9018abcb02763f7f82d904ad1df2393268cbbf4a
parentb26085819e974a0706cf5bc9196d208291803053 (diff)
eolian: fix memory leak when using error objects
-rw-r--r--src/lib/eolian/eolian_database.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c
index fd5f1032a0..14b0a9a4cc 100644
--- a/src/lib/eolian/eolian_database.c
+++ b/src/lib/eolian/eolian_database.c
@@ -1473,6 +1473,7 @@ database_error_del(Eolian_Error *err)
1473{ 1473{
1474 if (!err || eolian_object_unref(&err->base)) return; 1474 if (!err || eolian_object_unref(&err->base)) return;
1475 eina_stringshare_del(err->msg); 1475 eina_stringshare_del(err->msg);
1476 database_doc_del(err->doc);
1476 free(err); 1477 free(err);
1477} 1478}
1478 1479