From cbf53fe52d052896b255a8848347ff5d0c39e254 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 14 Oct 2019 12:30:07 +0100 Subject: [PATCH] trivial: Fix a recent regression causing a double-free This was introduced accidentally in a9be536ef0d760a39b107b88b21ac89d4d5a1720. Fixes https://github.com/fwupd/fwupd/issues/1461 --- src/fu-plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fu-plugin.c b/src/fu-plugin.c index faebc4de8..8ee58a107 100644 --- a/src/fu-plugin.c +++ b/src/fu-plugin.c @@ -1517,7 +1517,7 @@ fu_plugin_runner_usb_device_added (FuPlugin *self, FuUsbDevice *device, GError * FWUPD_ERROR, FWUPD_ERROR_NOT_SUPPORTED)) return TRUE; - g_propagate_error (error, error_local); + g_propagate_error (error, g_steal_pointer (&error_local)); return FALSE; } } @@ -1566,7 +1566,7 @@ fu_plugin_runner_udev_device_added (FuPlugin *self, FuUdevDevice *device, GError FWUPD_ERROR, FWUPD_ERROR_NOT_SUPPORTED)) return TRUE; - g_propagate_error (error, error_local); + g_propagate_error (error, g_steal_pointer (&error_local)); return FALSE; } }