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:
@@ -111,6 +111,7 @@ parent_setup_registration_checks_ready (MMIfaceModemCdma *self,
|
|||||||
&results->skip_at_cdma1x_serving_system_step,
|
&results->skip_at_cdma1x_serving_system_step,
|
||||||
&results->skip_detailed_registration_state,
|
&results->skip_detailed_registration_state,
|
||||||
&error)) {
|
&error)) {
|
||||||
|
g_free (results);
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
} else {
|
} else {
|
||||||
/* Skip +CSS */
|
/* Skip +CSS */
|
||||||
|
Reference in New Issue
Block a user