You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2019/07/24 08:22:38 UTC

[mynewt-nimble] 04/06: nimble/ll: Remove pointer to unreferenced aux_data

This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch 1_2_0_dev
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 7d2ba57141b3c1d4ac20bbb7cf05a126623493da
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Mon Jul 22 22:20:41 2019 +0200

    nimble/ll: Remove pointer to unreferenced aux_data
    
    When removing aux scheduler entry from the scheduler, make sure to remove
    the reference to the aux_data.
---
 nimble/controller/src/ble_ll_scan.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nimble/controller/src/ble_ll_scan.c b/nimble/controller/src/ble_ll_scan.c
index 71be964..4fcdc62 100644
--- a/nimble/controller/src/ble_ll_scan.c
+++ b/nimble/controller/src/ble_ll_scan.c
@@ -1171,6 +1171,7 @@ static void
 ble_ll_scan_sched_remove(struct ble_ll_sched_item *sch)
 {
     ble_ll_scan_aux_data_unref(sch->cb_arg);
+    sch->cb_arg = NULL;
 }
 #endif
 /**