summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-09-30 13:25:41 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-10-07 11:54:23 +0200
commit323949a699608ad9c215179d767a4ee503b93910 (patch)
tree961ddd309092ebf22cc2e513dc055ecae7f355c3
parent74934d8d0115e311dea9de789788a444e977482e (diff)
eolian gen2: fix double and missing free
-rw-r--r--src/bin/eolian2/main.c2
-rw-r--r--src/bin/eolian2/sources.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/eolian2/main.c b/src/bin/eolian2/main.c
index 4452660b65..8d4e3b4d15 100644
--- a/src/bin/eolian2/main.c
+++ b/src/bin/eolian2/main.c
@@ -488,8 +488,6 @@ main(int argc, char **argv)
488 if (succ && (gen_what & GEN_C_IMPL)) 488 if (succ && (gen_what & GEN_C_IMPL))
489 succ = _write_impl(outs[_get_bit_pos(GEN_C_IMPL)], eobn); 489 succ = _write_impl(outs[_get_bit_pos(GEN_C_IMPL)], eobn);
490 490
491 free(inoext);
492
493 if (!succ) 491 if (!succ)
494 goto end; 492 goto end;
495 493
diff --git a/src/bin/eolian2/sources.c b/src/bin/eolian2/sources.c
index 91f095b50c..13e39be57e 100644
--- a/src/bin/eolian2/sources.c
+++ b/src/bin/eolian2/sources.c
@@ -548,6 +548,7 @@ _gen_initializer(const Eolian_Class *cl, Eina_Strbuf *buf)
548 548
549 free(ocnamel); 549 free(ocnamel);
550 } 550 }
551 eina_iterator_free(itr);
551 552
552 /* strip the final comma before appending */ 553 /* strip the final comma before appending */
553 if (eina_strbuf_length_get(ops)) 554 if (eina_strbuf_length_get(ops))