add missing fclose
This commit is contained in:
parent
7378f01836
commit
6163d37cec
@ -141,12 +141,13 @@ int main(int argc, char **argv) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE *assembly = fopen(bin_filename, "r");
|
FILE *assembly = fopen(bin_filename, "rb");
|
||||||
if (assembly == NULL) {
|
if (assembly == NULL) {
|
||||||
printf("ERROR: Opening file '%s': %d\n", bin_filename, errno);
|
printf("ERROR: Opening file '%s': %d\n", bin_filename, errno);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
dissassemble(assembly, stdout);
|
dissassemble(assembly, stdout);
|
||||||
|
fclose(assembly);
|
||||||
|
|
||||||
remove(bin_filename);
|
remove(bin_filename);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user