You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2019/07/23 10:16:41 UTC

[mynewt-nimble] branch master updated: nimble/ll: Remove pointer to unreferenced aux_data

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

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


The following commit(s) were added to refs/heads/master by this push:
     new cd1b98d  nimble/ll: Remove pointer to unreferenced aux_data
cd1b98d is described below

commit cd1b98d63dfee5b47d26aa74a659f55de5ba4327
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
 /**