Commit: c81f9320357b0808dd4debebc687d26dc0be30ab
Parent: 3e03788ba80c94888d9e78bf1c8f62fff42353b8
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-10 18:29:01
Tree: 0b2f1c69fe4bbb31c12b172ff2e3ed6a3f66e9aa

iso-tester: Fix fd leak Error: RESOURCE_LEAK (CWE-772): [#def63] [important] tools/iso-tester.c:1796:2: open_fn: Returning handle opened by "socket". tools/iso-tester.c:1796:2: var_assign: Assigning: "sk" = handle returned from "socket(31, 2053, 8)". tools/iso-tester.c:1807:3: leaked_handle: Handle variable "sk" going out of scope leaks the handle. 1805| if (!master_bdaddr) { 1806| tester_warn("No master bdaddr"); 1807|-> return -ENODEV; 1808| } 1809|

Diffstat

M tools/iso-tester.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)

View Full Diff | Patch