Skip to content

Commit

Permalink
bannertopdf.c: Fix segfault when printing banners/test page (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
zdohnal authored Feb 12, 2025
1 parent d21dd1c commit 9486628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cupsfilters/bannertopdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,8 @@ cfFilterBannerToPDF(int inputfd, // I - File descriptor input stream
banner_free(banner);
if (options) cupsFreeOptions(num_options, options);
unlink(tempfile);
fclose(inputfp);
if (inputfp)
fclose(inputfp);

return (ret);
}

0 comments on commit 9486628

Please sign in to comment.