[PATCH] ublox: fix memory leaks in unit tests

Ben Chan benchan at chromium.org
Wed Jul 12 08:02:36 UTC 2017


---
 plugins/ublox/tests/test-modem-helpers-ublox.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/ublox/tests/test-modem-helpers-ublox.c b/plugins/ublox/tests/test-modem-helpers-ublox.c
index 286a58af..c85eaeea 100644
--- a/plugins/ublox/tests/test-modem-helpers-ublox.c
+++ b/plugins/ublox/tests/test-modem-helpers-ublox.c
@@ -480,6 +480,7 @@ test_urat_write_command (void)
         command = mm_ublox_build_urat_set_command (urat_tests[i].allowed, urat_tests[i].preferred, &error);
         g_assert_no_error (error);
         g_assert_cmpstr (command, ==, urat_tests[i].command);
+        g_free (command);
     }
 }
 
-- 
2.13.2.932.g7449e964c-goog



More information about the ModemManager-devel mailing list