q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a74000a65cf64389d89a1014b206347795b934c7

commit a74000a65cf64389d89a1014b206347795b934c7
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Fri May 1 11:48:35 2015 +0100

    eolian: specialize tmp free for typedef (avoid double free issue)
    
    @fix
---
 src/lib/eolian/eo_lexer.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c
index e978529..6e4057f 100644
--- a/src/lib/eolian/eo_lexer.c
+++ b/src/lib/eolian/eo_lexer.c
@@ -692,7 +692,10 @@ _temps_free(Eo_Lexer_Temps *tmp)
      eina_strbuf_free(buf);
 
    EINA_LIST_FREE(tmp->type_defs, tp)
-     database_type_del(tp);
+     if (tp->type == EOLIAN_TYPE_ALIAS)
+       database_typedef_del(tp);
+     else
+       database_type_del(tp);
 
    EINA_LIST_FREE(tmp->strs, s)
      if (s) eina_stringshare_del(s);

-- 


Reply via email to