ipaccess-config: Fix a resource leak in an error path
Fixes: Coverity CID 1040710, CID 1040711
This commit is contained in:
parent
aa63d70f39
commit
7d8139a42e
|
@ -648,6 +648,7 @@ static int find_sw_load_params(const char *filename)
|
|||
/* verify the file */
|
||||
if (fstat(fd, &stat) == -1) {
|
||||
perror("Can not stat the file");
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue