Commit 0f483cd9 authored by Sergio Costas's avatar Sergio Costas

Closing file

parent 7fb4d117
......@@ -456,6 +456,7 @@ int load_sna(const char *filename) {
free(tempo);
free(tempo2);
free(snap);
fclose(fichero);
return -1;
}
......@@ -524,6 +525,7 @@ int load_sna(const char *filename) {
free(tempo);
free(tempo2);
free(snap);
fclose(fichero);
printf("Error loading SNA file. Return address in ROM.\n");
return -1;
}
......@@ -559,6 +561,7 @@ int load_sna(const char *filename) {
free(tempo);
free(tempo2);
free(snap);
fclose(fichero);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment