Merge branch '2114-cid-306652-null-pointer-dereferences-reverse_inull-v9_16' into 'v9_16'
Silence REVERSE_INULL warning (CID 306652) See merge request isc-projects/bind9!4106
This commit is contained in:
@@ -3773,13 +3773,11 @@ cleanup_thread(isc_mem_t *mctx, isc__socketthread_t *thread) {
|
||||
isc_mem_put(thread->manager->mctx, thread->fdstate,
|
||||
thread->manager->maxsocks * sizeof(int));
|
||||
|
||||
if (thread->fdlock != NULL) {
|
||||
for (i = 0; i < FDLOCK_COUNT; i++) {
|
||||
isc_mutex_destroy(&thread->fdlock[i]);
|
||||
}
|
||||
isc_mem_put(thread->manager->mctx, thread->fdlock,
|
||||
FDLOCK_COUNT * sizeof(isc_mutex_t));
|
||||
for (i = 0; i < FDLOCK_COUNT; i++) {
|
||||
isc_mutex_destroy(&thread->fdlock[i]);
|
||||
}
|
||||
isc_mem_put(thread->manager->mctx, thread->fdlock,
|
||||
FDLOCK_COUNT * sizeof(isc_mutex_t));
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
|
||||
Reference in New Issue
Block a user