]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: free the buffer filled by lxc_cmd_rsp_recv 3800/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 13 Apr 2021 06:23:03 +0000 (06:23 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 13 Apr 2021 06:23:03 +0000 (06:23 +0000)
Fixes https://github.com/lxc/lxc/issues/3796

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
src/tests/console_log.c

index 1e875086b013bf59ec9673264f44c5bcbdff55f0..f0e31c9d53e6ae6128e9cb58c68f19a7eac6b4c9 100644 (file)
@@ -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. */