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
This commit is contained in:
Aleksander Morgado
2022-05-13 11:54:06 +02:00
parent b4d0fc4adf
commit 5fbe7c0c82
+1 -1
View File
@@ -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;