[PATCH 2/3] virNetworkObjDispose: Don't leak virMacMap object

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

 



Even though the virMacMap object is not necessarily created at
the same time as the network object, the former makes no sense
without the latter and thus should be unref'd in the network
object dispose function.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/conf/network_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
index 48e0001..dc15fc9 100644
--- a/src/conf/network_conf.c
+++ b/src/conf/network_conf.c
@@ -443,6 +443,7 @@ virNetworkObjDispose(void *obj)
     virNetworkDefFree(net->def);
     virNetworkDefFree(net->newDef);
     virBitmapFree(net->class_id);
+    virObjectUnref(net->macmap);
 }
 
 static void
-- 
2.10.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]
  Powered by Linux