summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-18 09:01:37 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-18 09:05:20 +0300
commit60fb57a3e516a3781539e53148f9ff3f94f13753 (patch)
treedeb361b71508ef3078fc2d118ec7ed6297ffe77a
parent438452d67e360c1860a72a65c6fbd7daf1a2e845 (diff)
Eolian/Generator: Fix coverity issues.
Fix CID 1203409 Fix CID 1203410
-rw-r--r--src/bin/eolian/eo1_generator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index 357de72..43e06ca 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -245,6 +245,7 @@ eo_header_generate(const char *classname, Eina_Strbuf *buf)
245 { 245 {
246 ERR ("Class \"%s\" not found in database", classname); 246 ERR ("Class \"%s\" not found in database", classname);
247 free(tmpstr); 247 free(tmpstr);
248 eina_strbuf_free(str_hdr);
248 return EINA_FALSE; 249 return EINA_FALSE;
249 } 250 }
250 251
@@ -412,7 +413,7 @@ eo_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Func
412 eina_strbuf_append_printf(fbody, "%s%s _%s_%s%s(Eo *obj, @#Datatype_Data *pd@#full_params);\n\n", 413 eina_strbuf_append_printf(fbody, "%s%s _%s_%s%s(Eo *obj, @#Datatype_Data *pd@#full_params);\n\n",
413 ret_const?"const ":"", rettype?rettype:"void", 414 ret_const?"const ":"", rettype?rettype:"void",
414 lowclass, 415 lowclass,
415 eolian_function_name_get(funcid), suffix?suffix:""); 416 eolian_function_name_get(funcid), suffix);
416 417
417 eina_strbuf_replace_all(fbody, "@#return_ret", tmpstr); 418 eina_strbuf_replace_all(fbody, "@#return_ret", tmpstr);
418 eina_strbuf_free(ret_param); 419 eina_strbuf_free(ret_param);
@@ -428,7 +429,7 @@ eo_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Func
428 "EAPI EO_%sFUNC_BODY%s(%s_%s%s", 429 "EAPI EO_%sFUNC_BODY%s(%s_%s%s",
429 ret_is_void?"VOID_":"", has_params?"V":"", 430 ret_is_void?"VOID_":"", has_params?"V":"",
430 current_eo_prefix_lower, eolian_function_name_get(funcid), 431 current_eo_prefix_lower, eolian_function_name_get(funcid),
431 suffix?suffix:""); 432 suffix);
432 if (!ret_is_void) 433 if (!ret_is_void)
433 { 434 {
434 const char *dflt_ret_val = 435 const char *dflt_ret_val =