diff options
author | Matthew Daley <mattjd@gmail.com> | 2013-09-18 15:37:42 +1200 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-09-25 12:45:39 +0100 |
commit | 12eaa1b4d2ae7b2e8c5f7d820bd9ec0476ead0f7 (patch) | |
tree | 5341c134d78d8bf9f17c7d42fd13c853ada9baff /tools | |
parent | 736491d1558dc97be4b8fac8957f3b5c7c0254f6 (diff) | |
download | xen-12eaa1b4d2ae7b2e8c5f7d820bd9ec0476ead0f7.tar.gz xen-12eaa1b4d2ae7b2e8c5f7d820bd9ec0476ead0f7.tar.bz2 xen-12eaa1b4d2ae7b2e8c5f7d820bd9ec0476ead0f7.zip |
libxl: fix leak of corename in handle_domain_death
Coverity-ID: 1087192
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 1 |
1 files changed, 1 insertions, 0 deletions
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. */ |