summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-05-14 11:42:35 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2019-05-14 11:43:54 +0900
commitbdb9561a366fa5afee0e855a22390e9282e1abd5 (patch)
tree84f96b470b1c53c06bc741086d09ca8c2d90e9ca /tests
parent07b1b3be179883cbd38446f38ae950f6d94a150b (diff)
downloadlibgpg-error-bdb9561a366fa5afee0e855a22390e9282e1abd5.tar.gz
tests: Fix a memory leak.
* tests/t-logging.c (check_log_info): Free LOGBUF. -- GnuPG-bug-id: 4498 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/t-logging.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/t-logging.c b/tests/t-logging.c
index a1783ef..4fcb64b 100644
--- a/tests/t-logging.c
+++ b/tests/t-logging.c
@@ -142,6 +142,7 @@ check_log_info (void)
if (strcmp (logbuf,
"t-logging: file '/foo/bar.txt\\nt-logging': not \\x01 found\n"))
fail ("log_info test failed at line %d\n", __LINE__);
+ free (logbuf);
/* With arguments and byte with bit 7 set in a string arg. */
log_info ("file '%s': %s\n", "/foo/bar.txt\n", "not \x81 found");