[calls] tests: origin: Fix memory leaks



commit 7cba40ff60231594e7ecd287aa115abe4144cf2b
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Thu Jan 27 16:35:18 2022 +0100

    tests: origin: Fix memory leaks

 tests/test-origin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/test-origin.c b/tests/test-origin.c
index 400626e3..f0698f2d 100644
--- a/tests/test-origin.c
+++ b/tests/test-origin.c
@@ -27,7 +27,7 @@ test_dummy_origin_get_name (OriginFixture *fixture,
                             gconstpointer user_data)
 {
   CallsOrigin *origin;
-  const gchar *name;
+  g_autofree char *name = NULL;
 
   origin = CALLS_ORIGIN (fixture->dummy_origin);
 


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