diff options
author | Ben Chan <benchan@chromium.org> | 2019-04-03 10:57:14 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-07-04 14:47:23 +0200 |
commit | cec7e8491e684675e423ab0111af58317076aa55 (patch) | |
tree | b6b00945f7697909081610fad768929430a294c2 | |
parent | 219c9fed39299022bb6b07051cd9454fd68c6e39 (diff) | |
download | ModemManager-cec7e8491e684675e423ab0111af58317076aa55.tar.gz |
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)
-rw-r--r-- | plugins/via/mm-broadband-modem-via.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |