aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-05-14 02:42:35 +0000
committerNIIBE Yutaka <[email protected]>2019-05-14 02:43:54 +0000
commitbdb9561a366fa5afee0e855a22390e9282e1abd5 (patch)
tree84f96b470b1c53c06bc741086d09ca8c2d90e9ca
parentbuild: Update m4/iconv.m4. (diff)
downloadlibgpg-error-bdb9561a366fa5afee0e855a22390e9282e1abd5.tar.gz
libgpg-error-bdb9561a366fa5afee0e855a22390e9282e1abd5.zip
tests: Fix a memory leak.
* tests/t-logging.c (check_log_info): Free LOGBUF. -- GnuPG-bug-id: 4498 Signed-off-by: NIIBE Yutaka <[email protected]>
-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");