From 940195775d0801bca1e8e6d4dc492f01a7e1a3c5 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Tue, 13 Apr 2021 06:23:03 +0000 Subject: [PATCH] tests: free the buffer filled by lxc_cmd_rsp_recv Fixes https://github.com/lxc/lxc/issues/3796 Signed-off-by: Evgeny Vereshchagin --- src/tests/console_log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/console_log.c b/src/tests/console_log.c index 1e875086b..f0e31c9d5 100644 --- a/src/tests/console_log.c +++ b/src/tests/console_log.c @@ -109,6 +109,7 @@ int main(int argc, char *argv[]) lxc_debug("Retrieved %" PRIu64 " bytes from console log. Contents are \"%s\"\n", *log.read_max, log.data); + free(log.data); } /* Leave another two seconds to ensure boot is finished. */ -- 2.47.2