aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-09-18 08:42:55 +0000
committerNIIBE Yutaka <[email protected]>2019-09-18 08:42:55 +0000
commit46bb7eb8c5541d62cd90227bde205f663ef0e6d5 (patch)
treeb8e0816d384376725c39c0cf1605387ec5db5b9e /tests
parentgpgrt_setenv: Define behavior when value=NULL. (diff)
downloadlibgpg-error-46bb7eb8c5541d62cd90227bde205f663ef0e6d5.tar.gz
libgpg-error-46bb7eb8c5541d62cd90227bde205f663ef0e6d5.zip
tests: Fix deallocation of buffer in t-b64.c.
* tests/t-b64.c (test_b64dec_string): De-allocate. GnuPG-bug-id: 4698 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/t-b64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/t-b64.c b/tests/t-b64.c
index 96e8fa4..0171909 100644
--- a/tests/t-b64.c
+++ b/tests/t-b64.c
@@ -161,6 +161,7 @@ test_b64dec_string (const char *string, const char *expected, const char *title)
{
err = gpg_err_code_from_syserror ();
fail ("gpgrt_b64dec_start failed: %s\n", gpg_strerror (err));
+ free (buffer);
return err;
}