summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo1_generator.c
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-03-19 16:40:52 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-03-19 16:40:52 +0100
commit44a54caa16cc71e1aad6d054f1017fecdd0c783b (patch)
treecf5d5f552cc6163750d6331a1af23574a7e2a208 /src/bin/eolian/eo1_generator.c
parent897b70437f49464e0f8815abcacc238f31f73a1d (diff)
eolian/eo1_generator: Fix leak in error path
We allocated tmpstr so we should free it before we return in the error case. CID 1191926
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo1_generator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index a2388b5ea0..6573d7f311 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -253,6 +253,7 @@ eo1_header_generate(const char *classname, Eina_Strbuf *buf)
253 if (!eolian_class_exists(classname)) 253 if (!eolian_class_exists(classname))
254 { 254 {
255 ERR ("Class \"%s\" not found in database", classname); 255 ERR ("Class \"%s\" not found in database", classname);
256 free(tmpstr);
256 return EINA_FALSE; 257 return EINA_FALSE;
257 } 258 }
258 259