ipaccess-config: Fix a resource leak in an error path

Fixes: Coverity CID 1040710, CID 1040711
This commit is contained in:
Holger Hans Peter Freyther 2013-07-04 18:47:44 +02:00
parent aa63d70f39
commit 7d8139a42e
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}