[gobject-introspection] g-ir-compiler: Fix leaks in write_out_typelib
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] g-ir-compiler: Fix leaks in write_out_typelib
- Date: Sun, 20 Jun 2021 21:25:46 +0000 (UTC)
commit 454c71881c3a9e20250e89b3439f000429484fb5
Author: David King <dking redhat com>
Date: Thu May 20 13:58:13 2021 +0100
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]