From 12eaa1b4d2ae7b2e8c5f7d820bd9ec0476ead0f7 Mon Sep 17 00:00:00 2001 From: Matthew Daley Date: Wed, 18 Sep 2013 15:37:42 +1200 Subject: libxl: fix leak of corename in handle_domain_death Coverity-ID: 1087192 Signed-off-by: Matthew Daley Acked-by: Ian Campbell --- tools/libxl/xl_cmdimpl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index a609b98b0f..211bdea01a 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1621,6 +1621,7 @@ static int handle_domain_death(uint32_t *r_domid, LOG("dumping core to %s", corefile); rc=libxl_domain_core_dump(ctx, *r_domid, corefile, NULL); if (rc) LOG("core dump failed (rc=%d).", rc); + free(corefile); } /* No point crying over spilled milk, continue on failure. */ -- cgit v1.2.3