Diff between 6ea1b038eedeca31c3796ac921e25509d48d70ec and 18e137db73e2ae6d307e62ac8430f7326efdb0c3

Changed Files

File Additions Deletions Status
tools/mesh/remote.c +3 -2 modified

Full Patch

diff --git a/tools/mesh/remote.c b/tools/mesh/remote.c
index 2a8f747..c74f0be 100644
--- a/tools/mesh/remote.c
+++ b/tools/mesh/remote.c
@@ -134,10 +134,11 @@ uint8_t remote_del_node(uint16_t unicast)
 		l_queue_destroy(rmt->els[i], NULL);
 		remote_add_blacklisted_address(unicast + i, iv_index, true);
 	}
+
 	l_free(rmt->els);
 
-	l_queue_destroy(rmt->net_keys, l_free);
-	l_queue_destroy(rmt->app_keys, l_free);
+	l_queue_destroy(rmt->net_keys, NULL);
+	l_queue_destroy(rmt->app_keys, NULL);
 	l_free(rmt);
 
 	mesh_db_del_node(unicast);