MFC:
Fix a file descriptor leak in cam_lookup_pass() when the ioctl to find the passthru device fails. Approved by: re (scottl)
This commit is contained in:
parent
7bedbff357
commit
bf090cbba6
@ -514,6 +514,7 @@ cam_lookup_pass(const char *dev_name, int unit, int flags,
|
||||
"%s: %s%s", func_name, func_name, strerror(errno),
|
||||
(errno == ENOENT) ? tmpstr : "");
|
||||
|
||||
close(fd);
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user