fix unreachable UAF (fix #758) (#824)

This commit is contained in:
Ryan Hileman 2017-05-07 19:40:34 -07:00 committed by Nguyen Anh Quynh
parent 37edadedec
commit b93ca7f565

1
uc.c
View File

@ -1084,6 +1084,7 @@ uc_err uc_hook_del(uc_engine *uc, uc_hook hh)
if (list_remove(&uc->hook[i], (void *)hook)) {
if (--hook->refs == 0) {
free(hook);
break;
}
}
}