diff options
author | David King <dking@redhat.com> | 2021-05-20 12:40:23 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2021-06-18 14:28:05 +0000 |
commit | f3b8d2771dc9689a3e8a9f1a34337992946d7a84 (patch) | |
tree | d0ad7e3146d7e03c5fe583afc4c4d373db3ec4b0 /girepository | |
parent | c0bd13cf682b764601ccf301c682bd166c1bceb3 (diff) | |
download | gobject-introspection-f3b8d2771dc9689a3e8a9f1a34337992946d7a84.tar.gz |
girepository: Fix leak in write_vfunc_info
Found by Coverity.
https://bugzilla.redhat.com/show_bug.cgi?id=1938731
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/girwriter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/girepository/girwriter.c b/girepository/girwriter.c index cc14280b..d092df10 100644 --- a/girepository/girwriter.c +++ b/girepository/girwriter.c @@ -923,7 +923,10 @@ write_vfunc_info (const gchar *namespace, xml_printf (file, " offset=\"%d\"", offset); if (invoker) - xml_printf (file, " invoker=\"%s\"", g_base_info_get_name ((GIBaseInfo*)invoker)); + { + xml_printf (file, " invoker=\"%s\"", g_base_info_get_name ((GIBaseInfo*)invoker)); + g_base_info_unref ((GIBaseInfo *)invoker); + } write_callable_info (namespace, (GICallableInfo*)info, file); |