From ad062b0a5b7d598081405ecfb71b51540281a1b7 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 12 Apr 2021 13:06:17 +0900 Subject: build,tests: Fix leaks of memory or file pointer. * src/mkheader.c (parse_config_h): Close FP. * tests/t-b64.c (test_b64enc_string): Free STATE. (test_b64dec_string): Free BUFFER. * tests/t-syserror.c (main): Close FP. -- GnuPG-bug-id: 5381 Signed-off-by: Jakub Jelen --- tests/t-syserror.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/t-syserror.c') diff --git a/tests/t-syserror.c b/tests/t-syserror.c index a4cb983..93264dd 100644 --- a/tests/t-syserror.c +++ b/tests/t-syserror.c @@ -49,6 +49,7 @@ main (int argc, char *argv[]) } if (fp) { + fclose (fp); fprintf (stderr, "unable to run test\n"); return 1; } -- cgit v1.2.3