Skip to content

Commit

Permalink
Merge pull request #52 from adrianreber/2024-12-30-segfault
Browse files Browse the repository at this point in the history
Fix segfault when running "cd-paranoia -L -- -1"
  • Loading branch information
rocky authored Dec 30, 2024
2 parents d4ca6e5 + 2221359 commit 2673020
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cd-paranoia.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,11 +637,13 @@ static void cleanup(void) {
free_and_null(force_cdrom_device);
free_and_null(span);
if (logfile_open) {
fclose(logfile);
if (logfile)
fclose(logfile);
logfile = NULL;
}
if (reportfile_open) {
fclose(reportfile);
if (reportfile)
fclose(reportfile);
reportfile = NULL;
}
}
Expand Down

0 comments on commit 2673020

Please sign in to comment.