Welcome to little lamb

Code » qmdoc » commit 0fb7e1d

Close source file after convertion

author Olivier Brunel
2022-12-26 20:34:42 UTC
committer Olivier Brunel
2022-12-26 20:34:42 UTC
parent 16399cfe897b4009535e0e482c4dfb60833b1fb3

Close source file after convertion

main.c +1 -0

diff --git a/main.c b/main.c
index bea6c0c..dc5ff98 100644
--- a/main.c
+++ b/main.c
@@ -838,6 +838,7 @@ main (int argc, char *argv[])
         ctx.cur_page = i - optind;
         int r = convert_page(&ctx);
         if (r < 0) return -r;
+        fd_close(pages[ctx.cur_page].fd);
 
         fclose(ctx.out);
     }