From 454c71881c3a9e20250e89b3439f000429484fb5 Mon Sep 17 00:00:00 2001 From: David King Date: Thu, 20 May 2021 13:58:13 +0100 Subject: g-ir-compiler: Fix leaks in write_out_typelib Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938731 --- tools/compiler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/compiler.c b/tools/compiler.c index 700305ed..182b00b3 100644 --- a/tools/compiler.c +++ b/tools/compiler.c @@ -110,6 +110,8 @@ write_out_typelib (gchar *prefix, } success = TRUE; out: + g_clear_object (&file_obj); + g_clear_object (&tmp_file_obj); g_free (filename); g_free (tmp_filename); -- cgit v1.2.1