From 3c68208dd3f19567239cba8f5ae781f79f64e99c Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Fri, 16 Apr 2021 14:53:11 +0200 Subject: fix compcovtest --- qemu_mode/libcompcov/compcovtest.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qemu_mode/libcompcov/compcovtest.cc') diff --git a/qemu_mode/libcompcov/compcovtest.cc b/qemu_mode/libcompcov/compcovtest.cc index b446ebfa..92e3864c 100644 --- a/qemu_mode/libcompcov/compcovtest.cc +++ b/qemu_mode/libcompcov/compcovtest.cc @@ -77,6 +77,9 @@ int main(int argc, char **argv) { printf("Puzzle solved, congrats!\n"); abort(); + + if (argc > 1) { fclose(file); } + return 0; } -- cgit 1.4.1