mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '2114-cid-306652-null-pointer-dereferences-reverse_inull' into 'main'
Resolve "CID 306652: Null pointer dereferences (REVERSE_INULL)" Closes #2114 See merge request isc-projects/bind9!4099
This commit is contained in:
commit
0a8fc4062d
1 changed files with 4 additions and 6 deletions
|
|
@ -3771,13 +3771,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue