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