g-ir-compiler: Fix leaks in write_out_typelib

Found by Coverity.

https://bugzilla.redhat.com/show_bug.cgi?id=1938731
This commit is contained in:
David King 2021-05-20 13:58:13 +01:00 committed by Evan Welsh
parent 98daf20188
commit bd56539f73

View File

@ -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);