Commit: 3e03788ba80c94888d9e78bf1c8f62fff42353b8
Parent: 856353b254da30741a12d8e2d1d3bce3c10c3de7
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-10 18:28:54
Tree: aab2a08fd1dd79ffae92cc64f07b1fa214893d03

isotest: Fix fd leak Error: RESOURCE_LEAK (CWE-772): [#def65] [important] tools/isotest.c:923:4: open_fn: Returning handle opened by "open_file". tools/isotest.c:923:4: var_assign: Assigning: "fd" = handle returned from "open_file(altername)". tools/isotest.c:953:3: leaked_handle: Handle variable "fd" going out of scope leaks the handle. 951| 952| free(sk_arr); 953|-> return; 954| } 955|

Diffstat

M tools/isotest.c | 2 ++

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

View Full Diff | Patch