[gobject-introspection] girepository: Fix memory leak



commit b57090d78d2e4d1f9ff0e0a940d719471007c558
Author: Philip Chimento <philip endlessm com>
Date:   Thu Oct 10 13:34:23 2019 -0700

    girepository: Fix memory leak
    
    In g_irepository_get_object_gtype_interfaces()

 girepository/girepository.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 08149da8..fd668c5a 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -1036,6 +1036,8 @@ g_irepository_get_object_gtype_interfaces (GIRepository      *repository,
 
       g_hash_table_insert (repository->priv->interfaces_for_gtype, (gpointer) gtype,
                            cache);
+
+      g_free (interfaces);
     }
 
   *n_interfaces_out = cache->n_interfaces;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]