aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-05-13 11:54:06 +0200
committerAleksander Morgado <aleksander@aleksander.es>2022-05-13 11:54:06 +0200
commit5fbe7c0c82fb225d001c4aa0ceaacbc3fd30c986 (patch)
tree196d4c88761f884583173a52af720a351a9c455a /src
parentb4d0fc4adf52e408b364cb61a2984c07c3dc830d (diff)
broadband-modem-mbim: fix additional double GError free
We're returning the GError as GTask result, we should not explicitly free it ourselves. Same as the previous fix, should solve the crash sometimes seen in https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/550
Diffstat (limited to 'src')
-rw-r--r--src/mm-broadband-modem-mbim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
index aa95350d..b8c5617c 100644
--- a/src/mm-broadband-modem-mbim.c
+++ b/src/mm-broadband-modem-mbim.c
@@ -8747,7 +8747,7 @@ before_set_query_device_slot_mappings_ready (MbimDevice *device,
{
MMBroadbandModemMbim *self;
g_autoptr(MbimMessage) response = NULL;
- g_autoptr(GError) error = NULL;
+ GError *error = NULL;
g_autoptr(MbimMessage) message = NULL;
guint32 map_count = 0;
g_autoptr(MbimSlotArray) slot_mappings = NULL;