cpphash: Fix not to access freed pointer.

This commit is contained in:
Jaehyun Cho 2016-12-06 14:42:37 +09:00
parent 967c7c7195
commit 6262cbfb62
1 changed files with 2 additions and 2 deletions

View File

@ -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]);
}
}