mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
iscsi-scstd: Fix a file descriptor leak in an error path
Detected by Coverity. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6371 d57e44dd-8a1f-0410-8b47-8ef2f437770f
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