[virt-tools-list] [libosinfo] loader: Fix media object leaks

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Dec 5 13:20:47 UTC 2012


From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>

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

diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c
index c49d303..a4dd01d 100644
--- a/osinfo/osinfo_loader.c
+++ b/osinfo/osinfo_loader.c
@@ -957,6 +957,7 @@ static void osinfo_loader_os(OsinfoLoader *loader,
             break;
 
         osinfo_os_add_media (os, media);
+        g_object_unref (media);
     }
 
     g_free(nodes);
-- 
1.8.0.1




More information about the virt-tools-list mailing list