]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: plug child process leak on domain core dump
authorEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 20:35:40 +0000 (14:35 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 21:10:50 +0000 (15:10 -0600)
Detected by Coverity.  Leak introduced by typo in commit 58e668d2.

* src/qemu/qemu_driver.c (doCoreDump): Use correct function.

src/qemu/qemu_driver.c

index 5c6d1b876f2f1697cb7b09e1acab82dfd2458f71..2044e23f8f9cc572988d24d0a1da636481a79e3c 100644 (file)
@@ -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;