mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
qemu: plug child process leak on domain core dump
Detected by Coverity. Leak introduced by typo in commit 58e668d2
.
* src/qemu/qemu_driver.c (doCoreDump): Use correct function.
This commit is contained in:
parent
9a87657a31
commit
0c1813f4c9
@ -2717,7 +2717,7 @@ doCoreDump(struct qemud_driver *driver,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
VIR_FORCE_CLOSE(fd);
|
VIR_FORCE_CLOSE(fd);
|
||||||
virFileDirectFdClose(directFd);
|
virFileDirectFdFree(directFd);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
unlink(path);
|
unlink(path);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user