From 2989ef904236c941ed61f587e9ed5e0827e7a81b Mon Sep 17 00:00:00 2001 From: Matthew Daley Date: Wed, 18 Sep 2013 15:37:44 +1200 Subject: libxl: fix leak of rune in main_remus Coverity-ID: 1087194 Signed-off-by: Matthew Daley Acked-by: Ian Campbell --- tools/libxl/xl_cmdimpl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/libxl') diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index b05763fbe3..81ec66c85f 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -7125,6 +7125,9 @@ int main_remus(int argc, char **argv) migrate_do_preamble(send_fd, recv_fd, child, config_data, config_len, rune); + + if (ssh_command[0]) + free(rune); } /* Point of no return */ -- cgit v1.2.3