diff options
author | Brian Gix <brian.gix@intel.com> | 2020-05-15 18:22:03 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-05-15 18:25:30 -0700 |
commit | d18cb97bb5cada101a5786d34241508d85227ba4 (patch) | |
tree | 09faf616918a304b9e3380c51bf06f35608da9ad /mesh/mesh.c | |
parent | cc0719ceae2d048e50832cea0890cff1da3d2b52 (diff) | |
download | bluez-d18cb97bb5cada101a5786d34241508d85227ba4.tar.gz |
mesh: Fix valgrind memory leak warnings
These warnings are caused by not completely freeing memory allocations
at shutdown, and are not serious, but they make valgrind output cleaner.
Diffstat (limited to 'mesh/mesh.c')
-rw-r--r-- | mesh/mesh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesh/mesh.c b/mesh/mesh.c index 23ff9c2a8..451cefbb4 100644 --- a/mesh/mesh.c +++ b/mesh/mesh.c @@ -27,6 +27,7 @@ #include "mesh/mesh-io.h" #include "mesh/node.h" #include "mesh/net.h" +#include "mesh/net-keys.h" #include "mesh/provision.h" #include "mesh/model.h" #include "mesh/dbus.h" @@ -340,8 +341,11 @@ void mesh_cleanup(void) } l_queue_destroy(pending_queue, pending_request_exit); + mesh_agent_cleanup(); node_cleanup_all(); mesh_model_cleanup(); + mesh_net_cleanup(); + net_key_cleanup(); l_dbus_object_remove_interface(dbus_get_bus(), BLUEZ_MESH_PATH, MESH_NETWORK_INTERFACE); |