summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-09-18 17:42:55 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2019-09-18 17:42:55 +0900
commit46bb7eb8c5541d62cd90227bde205f663ef0e6d5 (patch)
treeb8e0816d384376725c39c0cf1605387ec5db5b9e /tests
parent4b8e8ba9f60cb6eb644be5f86b9c19ebf4332763 (diff)
downloadlibgpg-error-46bb7eb8c5541d62cd90227bde205f663ef0e6d5.tar.gz
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 <gniibe@fsij.org>
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;
}