Skip to content

Commit 9ca106f

Browse files
authored
Merge pull request #76 from xeons/fix-segfault-patch
Quick fix to stop the crash.
2 parents 9cd71a4 + 3a890df commit 9ca106f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hdl_dump.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,12 +1124,14 @@ inject(const dict_t *config,
11241124
} else {
11251125
result = hdl_inject(hio, iin, &game, slice_index, is_hidden, pgs);
11261126
}
1127-
(void)iin->close(iin_zso), iin_zso = NULL;
11281127
}
11291128

11301129
(void)hio->close(hio), hio = NULL;
11311130
}
1131+
11321132
(void)iin->close(iin), iin = NULL;
1133+
if (iin_zso != NULL)
1134+
(void)iin_zso->close(iin_zso), iin_zso = NULL;
11331135
}
11341136

11351137
return (result);

0 commit comments

Comments
 (0)