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.
This commit is contained in:
Ben Chan
2019-04-03 10:57:14 -07:00
parent 84fe52a1e6
commit 7f78ef5010

View File

@@ -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 */