projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df8625
)
eolian gen: fix leak in type generator
author
Daniel Kolesa
<d.kolesa@osg.samsung.com>
Thu, 8 Dec 2016 13:00:02 +0000
(14:00 +0100)
committer
Daniel Kolesa
<d.kolesa@osg.samsung.com>
Thu, 8 Dec 2016 13:00:02 +0000
(14:00 +0100)
Fixes CID1365322.
src/bin/eolian/types.c
patch
|
blob
|
history
diff --git
a/src/bin/eolian/types.c
b/src/bin/eolian/types.c
index ccc9bc64f50677e786456701b154517be4bf4c84..7ad63f74fd916d925e24df51053dfd61d29b4090 100644
(file)
--- a/
src/bin/eolian/types.c
+++ b/
src/bin/eolian/types.c
@@
-269,6
+269,7
@@
void eo_gen_types_source_gen(const char *eof, Eina_Strbuf *buf)
Eina_Stringshare *ct = eolian_type_c_type_get(vt);
eina_strbuf_append_printf(buf, "EWAPI %s %s = ", ct, fn);
eina_stringshare_del(ct);
+ free(fn);
Eolian_Value val = eolian_expression_eval_type(vv, vt);
Eina_Stringshare *lit = eolian_expression_value_to_literal(&val);