mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 05:40:11 +01:00
modem: fix memory leak
Fixes:9b935fad9b('modem: don't use GAsyncResult pattern for disconnecting modem') (cherry picked from commit22cd9e754b) (cherry picked from commit47c772354e) (cherry picked from commit05319cb391)
This commit is contained in:
parent
98c019f708
commit
0ec37e55b2
1 changed files with 1 additions and 1 deletions
|
|
@ -1127,7 +1127,7 @@ simple_disconnect_ready (GObject *source_object,
|
|||
{
|
||||
MMModemSimple *modem_iface = MM_MODEM_SIMPLE (source_object);
|
||||
DisconnectContext *ctx = user_data;
|
||||
GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
if (!mm_modem_simple_disconnect_finish (modem_iface, res, &error)) {
|
||||
if ( ctx->warn
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue