[PATCH 1/2] Remove double free in virHostdevManagerDispose

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The object itself is freed by virObjectUnref.
---
 src/util/virhostdev.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c
index 54023bd..d80dbf7 100644
--- a/src/util/virhostdev.c
+++ b/src/util/virhostdev.c
@@ -83,8 +83,6 @@ virHostdevManagerDispose(void *obj)
     virObjectUnref(hostdevMgr->activeUSBHostdevs);
     virObjectUnref(hostdevMgr->activeSCSIHostdevs);
     VIR_FREE(hostdevMgr->stateDir);
-
-    VIR_FREE(hostdevMgr);
 }
 
 static virHostdevManagerPtr
-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]