[glib: 8/9] gobject/tests/param: Fix a memory leak




commit 6e46edea5bb67485f00b7567275fd33c497447e5
Author: GOUJON Évan <goujon evan gmail com>
Date:   Thu Jul 22 16:45:37 2021 +0200

    gobject/tests/param: Fix a memory leak

 gobject/tests/param.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gobject/tests/param.c b/gobject/tests/param.c
index 3ab87ef77..e1f3cdeb1 100644
--- a/gobject/tests/param.c
+++ b/gobject/tests/param.c
@@ -905,6 +905,7 @@ main (int argc, char *argv[])
                                          data.use_this_flag, data.use_this_type);
             test_data = g_memdup2 (&data, sizeof (TestParamImplementData));
             g_test_add_data_func_full (test_path, test_data, test_param_implement_child, g_free);
+            g_free (test_data);
             g_free (test_path);
           }
 


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