From: Matthew Daley Date: Wed, 18 Sep 2013 03:37:42 +0000 (+1200) Subject: libxl: fix leak of corename in handle_domain_death X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6287 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=12eaa1b4d2ae7b2e8c5f7d820bd9ec0476ead0f7;p=xen.git libxl: fix leak of corename in handle_domain_death Coverity-ID: 1087192 Signed-off-by: Matthew Daley Acked-by: Ian Campbell --- 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. */