mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 16:15:19 +00:00
qemu: getAutoDumpPath() return value should be dumpfile not domname.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1354238 So we spend some time and effort constructing perfect file name for an automatic coredump of a domain, but then just leak it and use the domain name anyway. This is probably due to a silly mistake that slipped even through review. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c8f08e4876
commit
8305322d24
@ -3869,7 +3869,8 @@ getAutoDumpPath(virQEMUDriverPtr driver,
|
||||
timestr));
|
||||
|
||||
virObjectUnref(cfg);
|
||||
return domname;
|
||||
VIR_FREE(domname);
|
||||
return dumpfile;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user