Clean up all structures allocated at initialization.
---
 src/peer.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/peer.c b/src/peer.c
index 5e9006f..b36b28f 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -1177,6 +1177,10 @@ void __connman_peer_cleanup(void)
 {
        DBG("");
 
+       g_hash_table_destroy(peers_notify->remove);
+       g_hash_table_destroy(peers_notify->add);
+       g_free(peers_notify);
+
        g_hash_table_destroy(peers_table);
        peers_table = NULL;
        dbus_connection_unref(connection);
-- 
1.9.1

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to