[PATCH 04/14] test-product: Fix two small leaks

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

 



This fixes:

==14496== 456 (48 direct, 408 indirect) bytes in 1 blocks are definitely lost in loss record 373 of 382
==14496==    at 0x65E1964: g_type_create_instance (gtype.c:1854)
==14496==    by 0x65C36AA: g_object_new_internal (gobject.c:1781)
==14496==    by 0x65C50CC: g_object_newv (gobject.c:1928)
==14496==    by 0x65C58B3: g_object_new (gobject.c:1621)
==14496==    by 0x53375FD: osinfo_productfilter_new (osinfo_productfilter.c:93)
==14496==    by 0x401982: test_supportdate (test-product.c:121)
==14496==    by 0x5117535: tcase_run_tfun_nofork.isra.9 (check_run.c:390)
==14496==    by 0x51178EB: srunner_iterate_tcase_tfuns (check_run.c:231)
==14496==    by 0x51178EB: srunner_run_tcase (check_run.c:373)
==14496==    by 0x51178EB: srunner_iterate_suites (check_run.c:195)
==14496==    by 0x51178EB: srunner_run (check_run.c:782)
==14496==    by 0x40166E: main (test-product.c:219)
==14496==-
==14496== 1,964 (48 direct, 1,916 indirect) bytes in 1 blocks are definitely lost in loss record 379 of 382
==14496==    at 0x65E1964: g_type_create_instance (gtype.c:1854)
==14496==    by 0x65C36AA: g_object_new_internal (gobject.c:1781)
==14496==    by 0x65C55ED: g_object_new_valist (gobject.c:2040)
==14496==    by 0x65C58A0: g_object_new (gobject.c:1624)
==14496==    by 0x5338257: osinfo_productlist_new (osinfo_productlist.c:81)
==14496==    by 0x401946: test_supportdate (test-product.c:116)
==14496==    by 0x5117535: tcase_run_tfun_nofork.isra.9 (check_run.c:390)
==14496==    by 0x51178EB: srunner_iterate_tcase_tfuns (check_run.c:231)
==14496==    by 0x51178EB: srunner_run_tcase (check_run.c:373)
==14496==    by 0x51178EB: srunner_iterate_suites (check_run.c:195)
==14496==    by 0x51178EB: srunner_run (check_run.c:782)
==14496==    by 0x40166E: main (test-product.c:219)
---
 test/test-product.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/test-product.c b/test/test-product.c
index b03eac2..f9ddb12 100644
--- a/test/test-product.c
+++ b/test/test-product.c
@@ -182,6 +182,8 @@ START_TEST(test_supportdate)
     g_object_unref(product2);
     g_object_unref(product3);
     g_object_unref(product4);
+    g_object_unref(filter);
+    g_object_unref(products);
 }
 END_TEST
 
-- 
2.7.4

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



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

  Powered by Linux