[libosinfo 4/4] loader: Fix leak in osinfo_loader_os

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

 



---
 osinfo/osinfo_loader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c
index bb7949e..b392a43 100644
--- a/osinfo/osinfo_loader.c
+++ b/osinfo/osinfo_loader.c
@@ -982,6 +982,7 @@ static void osinfo_loader_os(OsinfoLoader *loader,
             break;
 
         osinfo_os_add_tree (os, tree);
+        g_object_unref(G_OBJECT(tree));
     }
 
     g_free(nodes);
-- 
1.8.0.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux