stefan pushed a commit to branch master.

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

commit eef89ceb3a27088b22555a15ce5621eeb4ad5b02
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Mon Dec 12 16:35:44 2016 +0100

    elm: theme: avoid double free in theme version check
    
    If we would have a version below 110 we would run into a double free here.
    Just warn and let the freeing happen two lines below.
    
    CID: 1366926
---
 src/lib/elementary/elm_theme.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lib/elementary/elm_theme.c b/src/lib/elementary/elm_theme.c
index 9349fca..75f241f 100644
--- a/src/lib/elementary/elm_theme.c
+++ b/src/lib/elementary/elm_theme.c
@@ -52,7 +52,6 @@ _elm_theme_item_finalize(Elm_Theme_Files *files,
         if (v < 110) // bump this version number when we need to
           {
              WRN("Selected theme is too old (version = %d, needs >= 110)", v);
-             free(version);
           }
         free(version);
      }

-- 


Reply via email to