summaryrefslogtreecommitdiff
path: root/listing.c
diff options
context:
space:
mode:
Diffstat (limited to 'listing.c')
-rw-r--r--listing.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/listing.c b/listing.c
index e5bca89..fcf23d3 100644
--- a/listing.c
+++ b/listing.c
@@ -494,5 +494,9 @@ GenerateListing(const char *out_name)
}
warningLevel = oldWarningLevel;
}
+ if (outFile != stdout)
+ {
+ fclose(outFile);
+ }
return 1;
}