From: Eric Blake Date: Tue, 2 Aug 2011 20:35:40 +0000 (-0600) Subject: qemu: plug child process leak on domain core dump X-Git-Tag: v0.9.4~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c1813f4c90fda134ba2d5f3bed3f52cdc2fd833;p=thirdparty%2Flibvirt.git 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. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 5c6d1b876f..2044e23f8f 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -2717,7 +2717,7 @@ doCoreDump(struct qemud_driver *driver, cleanup: VIR_FORCE_CLOSE(fd); - virFileDirectFdClose(directFd); + virFileDirectFdFree(directFd); if (ret != 0) unlink(path); return ret;