diff options
author | Jakub Jelen <[email protected]> | 2021-04-12 04:06:17 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2021-04-12 04:06:17 +0000 |
commit | ad062b0a5b7d598081405ecfb71b51540281a1b7 (patch) | |
tree | fb9480faa66af5e99d4a3e713336036987e15b66 /tests/t-syserror.c | |
parent | core: Fix gpgrt_wait_processes, by skipping invalid PID. (diff) | |
download | libgpg-error-ad062b0a5b7d598081405ecfb71b51540281a1b7.tar.gz libgpg-error-ad062b0a5b7d598081405ecfb71b51540281a1b7.zip |
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 <[email protected]>
Diffstat (limited to 'tests/t-syserror.c')
-rw-r--r-- | tests/t-syserror.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |