mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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>
This commit is contained in:
1 parent
736491d155
commit
12eaa1b4d2
1 file changed
+1
@@ -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. */
|
||||
|
||||
|
||||