diff options
author | Matthew Daley <mattjd@gmail.com> | 2013-09-18 15:37:44 +1200 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-09-25 12:49:12 +0100 |
commit | 2989ef904236c941ed61f587e9ed5e0827e7a81b (patch) | |
tree | 398a63548b3ebcc2643dc73e613372cecba2cfd0 /tools/libxl | |
parent | 7737ecb20c5babff45445d27fff91894b43a2d28 (diff) | |
download | xen-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/libxl')
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 3 |
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 */ |