ble_mesh: fix canceled buffer memory leak

This commit is contained in:
lly
2019-09-02 14:55:09 +08:00
parent a734b3b1bc
commit e00186e683

View File

@@ -189,6 +189,8 @@ static void adv_thread(void *p)
BT_ERR("%s, xQueueSendToFront failed", __func__); BT_ERR("%s, xQueueSendToFront failed", __func__);
} }
} }
} else {
net_buf_unref(*buf);
} }
/* Give other threads a chance to run */ /* Give other threads a chance to run */