From bdb9561a366fa5afee0e855a22390e9282e1abd5 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 14 May 2019 11:42:35 +0900 Subject: tests: Fix a memory leak. * tests/t-logging.c (check_log_info): Free LOGBUF. -- GnuPG-bug-id: 4498 Signed-off-by: NIIBE Yutaka --- tests/t-logging.c | 1 + 1 file changed, 1 insertion(+) 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"); -- cgit v1.2.3