From cfa1e1eb17a3547aaf26eb5bcdfe1aacbcb80850 Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Fri, 12 Nov 2021 22:19:59 +0800 Subject: [PATCH] clear timer handle for struct ble_npl_callout during deinitializtion --- porting/npl/freertos/src/npl_os_freertos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/porting/npl/freertos/src/npl_os_freertos.c b/porting/npl/freertos/src/npl_os_freertos.c index 270226e0d..2987634d3 100644 --- a/porting/npl/freertos/src/npl_os_freertos.c +++ b/porting/npl/freertos/src/npl_os_freertos.c @@ -380,6 +380,7 @@ npl_freertos_callout_deinit(struct ble_npl_callout *co) xTimerDelete(co->handle, portMAX_DELAY); } #endif + memset(co, 0, sizeof(struct ble_npl_callout)); } ble_npl_error_t