jaehyun pushed a commit to branch master.

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

commit 6262cbfb62b4bcc0201071e660727faf0215ddbe
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Tue Dec 6 14:42:37 2016 +0900

    cpphash: Fix not to access freed pointer.
---
 src/bin/edje/epp/cpphash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/edje/epp/cpphash.c b/src/bin/edje/epp/cpphash.c
index 80972ea..ac643e6 100644
--- a/src/bin/edje/epp/cpphash.c
+++ b/src/bin/edje/epp/cpphash.c
@@ -192,7 +192,7 @@ cpp_hash_cleanup(cpp_reader * pfile EINA_UNUSED)
 
    for (i = HASHSIZE; --i >= 0;)
      {
-       while (hashtab[i])
-          delete_macro(hashtab[i]);
+        if (hashtab[i])
+          delete_macro(hashtab[i]);
      }
 }

-- 


Reply via email to