From 5fbe7c0c82fb225d001c4aa0ceaacbc3fd30c986 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 13 May 2022 11:54:06 +0200 Subject: 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 --- src/mm-broadband-modem-mbim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2