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:
Matthew Daley authored and Ian Campbell committed 2013-09-25 12:45:39 +01:00
1 parent 736491d155
commit 12eaa1b4d2
1 file changed
+1
+1
View File
@@ -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. */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.