Signed-off-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/xl_cmdimpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 3717568..9edc0db 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -4766,8 +4766,10 @@ static int main_shutdown_or_reboot(int do_reboot, int argc, char **argv) fallback_trigger); } - if (wait_for_it) + if (wait_for_it) { wait_for_domain_deaths(deathws, nb_domain - 1 /* not dom 0 */); + free(deathws); + } libxl_dominfo_list_free(dominfo, nb_domain); } else { -- 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel