summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-02-10 16:54:19 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-02-10 16:54:19 +0100
commitdb238d606c0e6a37a68f95ec671d8f0f4345c740 (patch)
treecd4a1286bd7ddd28fee161815978fed128cf56d0 /src
parent0356b1eb5ebcfed8d4f080eab11ac40e3a53f068 (diff)
eolian: fix memory leak in doc tokens (CID 1367505)
Diffstat (limited to 'src')
-rw-r--r--src/lib/eolian/eolian_database.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c
index 2e33da7fa9..d4551e794d 100644
--- a/src/lib/eolian/eolian_database.c
+++ b/src/lib/eolian/eolian_database.c
@@ -447,7 +447,9 @@ eolian_doc_token_text_get(const Eolian_Doc_Token *tok)
447 if (p != tok->text_end) 447 if (p != tok->text_end)
448 eina_strbuf_append_char(buf, *p); 448 eina_strbuf_append_char(buf, *p);
449 } 449 }
450 return eina_strbuf_string_steal(buf); 450 char *ptr = eina_strbuf_string_steal(buf);
451 eina_strbuf_free(buf);
452 return ptr;
451} 453}
452 454
453static Eolian_Doc_Ref_Type 455static Eolian_Doc_Ref_Type