mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 21:21:28 +00:00
iscsi-scstd: Fix a file descriptor leak
Detected by Coverity. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
@@ -194,7 +194,7 @@ send:
|
||||
|
||||
err = writev(fd, iov, 2 + !!iov[2].iov_len);
|
||||
out:
|
||||
if (fd > 0)
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
if (rsp_data)
|
||||
free(rsp_data);
|
||||
|
||||
Reference in New Issue
Block a user