projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
092b2d2
)
cpphash: Fix not to access freed pointer.
author
Jaehyun Cho
<jae_hyun.cho@samsung.com>
Tue, 6 Dec 2016 05:42:37 +0000
(14:42 +0900)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:23:58 +0000
(16:23 +0900)
Change-Id: I32220740355e9397f5a880a7d0de884c18de066e
src/bin/edje/epp/cpphash.c
patch
|
blob
|
history
diff --git
a/src/bin/edje/epp/cpphash.c
b/src/bin/edje/epp/cpphash.c
index 80972ea97d7dddaf99a8ee5a25c0b25e0a368dad..ac643e6278fd18526e08321b78bfbd0f4119f8b4 100644
(file)
--- 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]);
}
}