mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
remove redundant check (#1014)
This commit is contained in:
@ -1135,12 +1135,10 @@ inline u8 *queue_testcase_get(afl_state_t *afl, struct queue_entry *q) {
|
|||||||
|
|
||||||
do_once = 1;
|
do_once = 1;
|
||||||
// release unneeded memory
|
// release unneeded memory
|
||||||
u8 *ptr = ck_realloc(
|
afl->q_testcase_cache = ck_realloc(
|
||||||
afl->q_testcase_cache,
|
afl->q_testcase_cache,
|
||||||
(afl->q_testcase_max_cache_entries + 1) * sizeof(size_t));
|
(afl->q_testcase_max_cache_entries + 1) * sizeof(size_t));
|
||||||
|
|
||||||
if (ptr) { afl->q_testcase_cache = (struct queue_entry **)ptr; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cache full. We neet to evict one or more to map one.
|
/* Cache full. We neet to evict one or more to map one.
|
||||||
|
Reference in New Issue
Block a user