From bd56539f73a7d32fe051108a3eb86fb0ec8febac Mon Sep 17 00:00:00 2001 From: David King Date: Thu, 20 May 2021 13:58:13 +0100 Subject: [PATCH] g-ir-compiler: Fix leaks in write_out_typelib Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938731 --- girepository/tools/compiler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/girepository/tools/compiler.c b/girepository/tools/compiler.c index 700305ed8..182b00b36 100644 --- a/girepository/tools/compiler.c +++ b/girepository/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);