[ipaccess] Close the firmware file as well
This commit is contained in:
parent
dade8980e3
commit
322127413e
|
@ -414,6 +414,10 @@ static void analyze_firmware(const char *filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
ipaccess_analyze_file(fd, stat.st_size, 0, entry);
|
ipaccess_analyze_file(fd, stat.st_size, 0, entry);
|
||||||
|
if (close(fd) != 0) {
|
||||||
|
perror("Close failed.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
llist_for_each_entry(header, entry, entry) {
|
llist_for_each_entry(header, entry, entry) {
|
||||||
printf("Printing header information:\n");
|
printf("Printing header information:\n");
|
||||||
|
|
Loading…
Reference in New Issue