From: Wei Liu Date: Thu, 23 Jul 2015 07:59:12 +0000 (+0100) Subject: xl: free event struct after use in main_shutdown_or_reboot X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3fd3edf3c1c243a831385ae7b8e1ed68bd967461;p=people%2Fliuw%2Flibxenctrl-split%2Fxen.git xl: free event struct after use in main_shutdown_or_reboot Signed-off-by: Wei Liu Acked-by: Ian Campbell --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index e90521aa5c..de1c9c029d 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -4781,8 +4781,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 {