Diff between 9e9b9d7e0cf95c291dd171d34a5e281918b7cef5 and ff8c13c2758e21a34b3c7d4aa30aa20aa0006ecb

Changed Files

File Additions Deletions Status
src/mgmt.c +11 -0 modified

Full Patch

diff --git a/src/mgmt.c b/src/mgmt.c
index 52441e8..ae4a95c 100644
--- a/src/mgmt.c
+++ b/src/mgmt.c
@@ -2231,6 +2231,17 @@ fail:
 
 void mgmt_cleanup(void)
 {
+	int index;
+
+	for (index = 0; index <= max_index; index++) {
+		struct controller_info *info = &controllers[index];
+
+		if (!info->valid)
+			continue;
+
+		g_slist_free_full(info->pending_uuids, g_free);
+	}
+
 	g_free(controllers);
 	controllers = NULL;
 	max_index = -1;