mirror of git://git.sysmocom.de/ofono
gprs: fix memory leak
This commit is contained in:
parent
a7da67df9d
commit
b52c06210c
|
@ -865,6 +865,7 @@ static void pri_activate_callback(const struct ofono_error *error, void *data)
|
||||||
telephony_error_to_str(error));
|
telephony_error_to_str(error));
|
||||||
__ofono_dbus_pending_reply(&ctx->pending,
|
__ofono_dbus_pending_reply(&ctx->pending,
|
||||||
__ofono_error_failed(ctx->pending));
|
__ofono_error_failed(ctx->pending));
|
||||||
|
context_settings_free(ctx->context_driver->settings);
|
||||||
release_context(ctx);
|
release_context(ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1841,6 +1842,7 @@ static void gprs_deactivate_for_remove(const struct ofono_error *error,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pri_reset_context_settings(ctx);
|
||||||
release_context(ctx);
|
release_context(ctx);
|
||||||
|
|
||||||
if (gprs->settings) {
|
if (gprs->settings) {
|
||||||
|
|
Loading…
Reference in New Issue