summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 11:25:40 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 11:25:40 +0900
commit0c99a2f156e279018ab3ebe5a6f499bcd280dc6e (patch)
tree890601d1a47bd6d16e8f49701cd89bae6260322c /src/bin/eolian
parentd09262b011ace191cb5e3ebc9acbfb0a99d0eba9 (diff)
eolian - fix possible leak of name string
fixes CID 1232734
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/types_generator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index c732df13d0..8920f37b10 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -105,7 +105,10 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef, Eina_Bool full)
105 const Eolian_Enum_Type_Field *member; 105 const Eolian_Enum_Type_Field *member;
106 char *name = _concat_name(tp); 106 char *name = _concat_name(tp);
107 if (!full) 107 if (!full)
108 break; 108 {
109 free(name);
110 break;
111 }
109 if (in_typedef) 112 if (in_typedef)
110 { 113 {
111 eina_strbuf_append_printf(buf, "enum %s", name); 114 eina_strbuf_append_printf(buf, "enum %s", name);