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

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