diff options
author | David King <dking@redhat.com> | 2021-05-20 14:02:28 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2021-06-18 14:28:05 +0000 |
commit | d5cdbba5fa6d25ea82ecb39b7ba1839d7fed020a (patch) | |
tree | aef90430fa7bdc51f446e3823a396e8697089020 /tests/repository | |
parent | 454c71881c3a9e20250e89b3439f000429484fb5 (diff) | |
download | gobject-introspection-d5cdbba5fa6d25ea82ecb39b7ba1839d7fed020a.tar.gz |
tests/repository: Fix leak in test_constructor_return_type
Found by Coverity.
https://bugzilla.redhat.com/show_bug.cgi?id=1938731
Diffstat (limited to 'tests/repository')
-rw-r--r-- | tests/repository/gitestrepo.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |