[gobject-introspection] tests/repository: Fix leak in test_constructor_return_type
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests/repository: Fix leak in test_constructor_return_type
- Date: Sun, 20 Jun 2021 21:25:46 +0000 (UTC)
commit d5cdbba5fa6d25ea82ecb39b7ba1839d7fed020a
Author: David King <dking redhat com>
Date: Thu May 20 14:02:28 2021 +0100
tests/repository: Fix leak in test_constructor_return_type
Found by Coverity.
https://bugzilla.redhat.com/show_bug.cgi?id=1938731
tests/repository/gitestrepo.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/tests/repository/gitestrepo.c b/tests/repository/gitestrepo.c
index abe30d98..d8b9ec18 100644
--- a/tests/repository/gitestrepo.c
+++ b/tests/repository/gitestrepo.c
@@ -32,6 +32,7 @@ test_constructor_return_type(GIBaseInfo* object_info)
return_name = g_registered_type_info_get_type_name ((GIRegisteredTypeInfo*) return_info);
g_assert (strcmp (class_name, return_name) == 0);
+ g_base_info_unref ((GIBaseInfo*)return_info);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]