Blame SOURCES/0005-cltest-Fix-leaked_handle.patch

67d7dc
From f4743109f381a4d53b476c5b77c7c68a6aa40b59 Mon Sep 17 00:00:00 2001
67d7dc
From: Gopal Tiwari <gtiwari@redhat.com>
67d7dc
Date: Tue, 31 May 2022 13:11:09 +0530
67d7dc
Subject: [PATCH BlueZ 05/12] cltest: Fix leaked_handle
67d7dc
67d7dc
While performing static tool analysis using coverity found
67d7dc
following reports for resouse leak
67d7dc
67d7dc
bluez-5.64/tools/cltest.c:75: leaked_handle: Handle variable "fd"
67d7dc
going out of scope leaks the handle.
67d7dc
---
67d7dc
 tools/cltest.c | 1 +
67d7dc
 1 file changed, 1 insertion(+)
67d7dc
67d7dc
diff --git a/tools/cltest.c b/tools/cltest.c
67d7dc
index 2766fcd23..250c93cc7 100644
67d7dc
--- a/tools/cltest.c
67d7dc
+++ b/tools/cltest.c
67d7dc
@@ -72,6 +72,7 @@ static bool send_message(const bdaddr_t *src, const bdaddr_t *dst,
67d7dc
 		return false;
67d7dc
 	}
67d7dc
 
67d7dc
+	close(fd);
67d7dc
 	return true;
67d7dc
 }
67d7dc
 
67d7dc
-- 
67d7dc
2.26.2
67d7dc