[PATCH] cinterion: fix memory leaks in tests

Ben Chan benchan at chromium.org
Mon Jun 2 14:27:07 PDT 2014


---
 plugins/cinterion/tests/test-modem-helpers-cinterion.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/cinterion/tests/test-modem-helpers-cinterion.c b/plugins/cinterion/tests/test-modem-helpers-cinterion.c
index 5dc4f96..7604dfa 100644
--- a/plugins/cinterion/tests/test-modem-helpers-cinterion.c
+++ b/plugins/cinterion/tests/test-modem-helpers-cinterion.c
@@ -66,6 +66,7 @@ common_test_scfg (const gchar *response,
 
     g_free (bands_str);
     g_free (expected_bands_str);
+    g_array_unref (bands);
 }
 
 static void
@@ -150,6 +151,7 @@ common_test_scfg_response (const gchar *response,
 
     g_free (bands_str);
     g_free (expected_bands_str);
+    g_array_unref (bands);
 }
 
 static void
-- 
1.9.1.423.g4596e3a



More information about the ModemManager-devel mailing list