seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=9a828f080edc1618fa2034f937990f34e2ceb6a3

commit 9a828f080edc1618fa2034f937990f34e2ceb6a3
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Fri Mar 21 00:55:31 2014 +0900

    index: Set variable to NULL after free.
    
    Then NULL check for this variable is not valid.
    This fixes coverity CID 1193250:  Use after free  (USE_AFTER_FREE).
    
    @fix
---
 src/lib/elm_index.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c
index d8f51c0..01fb683 100644
--- a/src/lib/elm_index.c
+++ b/src/lib/elm_index.c
@@ -658,6 +658,7 @@ _sel_eval(Evas_Object *obj,
                          }
                     }
                   free(last);
+                  last = NULL;
                   if (it->letter) last = strdup(it->letter);
                }
           }

-- 


Reply via email to