fix task->handle use-after-free

Signed-off-by: yexiaokang <yexiaokang3@huawei.com>
This commit is contained in:
yexiaokang
2025-09-01 16:21:44 +08:00
committed by Agrant
parent b0ab8be4e2
commit fb185021ee
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -452,6 +452,7 @@ void NSTACKX_ThreadDeinit(void)
}
g_nstackThreadInitState = NSTACKX_INIT_STATE_START;
(void)PthreadMutexUnlock(&g_threadInitLock);
DFINDER_LOGI(TAG, "nstack deinit thread success");
}
#if !defined(DFINDER_USE_MINI_NSTACKX) && !defined(DFINDER_ENABLE_COAP_LOG)
+1 -1
View File
@@ -397,7 +397,7 @@ static void DestroyAllLocalIfaceOfList(List *list, uint8_t af)
if (iface->af != af) {
continue;
}
DestroyLocalIface(iface, true);
DestroyLocalIface(iface, false);
}
}