summaryrefslogtreecommitdiff
path: root/ines2.c
diff options
context:
space:
mode:
Diffstat (limited to 'ines2.c')
-rw-r--r--ines2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ines2.c b/ines2.c
index dc0e57d..db28090 100644
--- a/ines2.c
+++ b/ines2.c
@@ -106,6 +106,7 @@ static int ines2_load(struct nes_state *state, const char *path) {
}
if(!data || size < INES_HEADER_SIZE) {
+ free(data);
return -1;
}