commit: ec541835b6b148f11fe2d693ceea6e048ac512b9
parent 23c6c6b5d41a68f56d1ba99645c09b842da3815c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 16 Dec 2024 22:33:05 +0100
cmd/base64: close opened file even if process fails
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/cmd/base64.c b/cmd/base64.c
@@ -333,11 +333,7 @@ main(int argc, char *argv[])
goto end;
}
- if(process(fin, argv[argi]) != 0)
- {
- ret = 1;
- goto end;
- }
+ if(process(fin, argv[argi]) != 0) ret = 1;
if(fclose(fin) < 0)
{