mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
iscsi-scstd: Fix a file descriptor leak in an error path
Detected by Coverity. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
@@ -1188,6 +1188,7 @@ int nl_open(void)
|
||||
res = nl_write(nl_fd, NULL, 0);
|
||||
if (res < 0) {
|
||||
log_error("%s %d\n", __FUNCTION__, res);
|
||||
close(nl_fd);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user