From 07b9ce80bb30d7d97f1532db2dbc20ed3c0739f9 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 4 Jun 2021 11:07:27 -0400 Subject: [PATCH] Fix one more resource leak found by Coverity. --- testpdfio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testpdfio.c b/testpdfio.c index d5b633a..4b5c82e 100644 --- a/testpdfio.c +++ b/testpdfio.c @@ -1521,6 +1521,8 @@ write_text(pdfio_file_t *pdf, // I - PDF file return (1); } + fclose(fp); + return (0); error: