aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMatthew Daley <mattjd@gmail.com>2013-09-18 15:37:44 +1200
committerIan Campbell <ian.campbell@citrix.com>2013-09-25 12:49:12 +0100
commit2989ef904236c941ed61f587e9ed5e0827e7a81b (patch)
tree398a63548b3ebcc2643dc73e613372cecba2cfd0 /tools
parent7737ecb20c5babff45445d27fff91894b43a2d28 (diff)
downloadxen-2989ef904236c941ed61f587e9ed5e0827e7a81b.tar.gz
xen-2989ef904236c941ed61f587e9ed5e0827e7a81b.tar.bz2
xen-2989ef904236c941ed61f587e9ed5e0827e7a81b.zip
libxl: fix leak of rune in main_remus
Coverity-ID: 1087194 Signed-off-by: Matthew Daley <mattjd@gmail.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/libxl/xl_cmdimpl.c3
1 files changed, 3 insertions, 0 deletions
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 */