summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-03-03 18:01:53 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-03-03 18:14:14 +0200
commitfe682d97604219a4687aaf5fb808c4ee73e32693 (patch)
tree6fd2ad3bbc9e3e55cdeb70b06dc6f6ff230b1ebb /src/bin
parent49822ec28d7901676135c42bc63e8adb09294842 (diff)
Eolian: Valgrind fixes
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/eo1_generator.c4
-rw-r--r--src/bin/eolian/main.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index 1542f08ab5..478ddd9289 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -294,11 +294,13 @@ eo1_header_generate(const char *classname, Eina_Strbuf *buf)
294 eina_strbuf_replace_all(str_hdr, "@#list_subid", eina_strbuf_string_get(str_subid)); 294 eina_strbuf_replace_all(str_hdr, "@#list_subid", eina_strbuf_string_get(str_subid));
295 eina_strbuf_append(str_hdr, eina_strbuf_string_get(str_ev)); 295 eina_strbuf_append(str_hdr, eina_strbuf_string_get(str_ev));
296 296
297 eina_strbuf_append(buf, eina_strbuf_string_get(str_hdr));
298
297 eina_strbuf_free(str_subid); 299 eina_strbuf_free(str_subid);
298 eina_strbuf_free(str_ev); 300 eina_strbuf_free(str_ev);
299 eina_strbuf_free(tmpbuf); 301 eina_strbuf_free(tmpbuf);
302 eina_strbuf_free(str_hdr);
300 303
301 eina_strbuf_append(buf, eina_strbuf_string_get(str_hdr));
302 return EINA_TRUE; 304 return EINA_TRUE;
303} 305}
304 306
diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c
index 4a294e4281..8b36f13765 100644
--- a/src/bin/eolian/main.c
+++ b/src/bin/eolian/main.c
@@ -27,7 +27,9 @@ _include_guard_enclose(const char *fname, const char *fbody)
27 incname); 27 incname);
28 eina_strbuf_replace_all(incguard, ".", "_"); 28 eina_strbuf_replace_all(incguard, ".", "_");
29 eina_strbuf_replace_all(incguard, "_code_", fbody); 29 eina_strbuf_replace_all(incguard, "_code_", fbody);
30 return eina_strbuf_string_steal(incguard); 30 char *ret = eina_strbuf_string_steal(incguard);
31 eina_strbuf_free(incguard);
32 return ret;
31} 33}
32 34
33static const char * 35static const char *