From cec7e8491e684675e423ab0111af58317076aa55 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Wed, 3 Apr 2019 10:57:14 -0700 Subject: via: fix memory leak in parent_setup_registration_checks_ready This patch fixes a potential memory leak in parent_setup_registration_checks_ready() where the allocated SetupRegistrationChecksResults may be leaked when the MMIfaceModemCdma parent's setup_registration_checks() fails. (cherry picked from commit 7f78ef50100f7f125ddcd47a721676d80e86d1fe) --- plugins/via/mm-broadband-modem-via.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/via/mm-broadband-modem-via.c b/plugins/via/mm-broadband-modem-via.c index 1959fd95f..968e62daa 100644 --- a/plugins/via/mm-broadband-modem-via.c +++ b/plugins/via/mm-broadband-modem-via.c @@ -111,6 +111,7 @@ parent_setup_registration_checks_ready (MMIfaceModemCdma *self, &results->skip_at_cdma1x_serving_system_step, &results->skip_detailed_registration_state, &error)) { + g_free (results); g_task_return_error (task, error); } else { /* Skip +CSS */ -- cgit v1.2.1