mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
iscsiadm: Fix a resource leak
Detected by Coverity. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
@@ -240,7 +240,7 @@ out_report:
|
||||
}
|
||||
|
||||
out_close:
|
||||
if (fd > 0)
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user