From 28cf2ecd0dd9cfca949b7eac17b12dfe87a7c04c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 14 Jun 2018 10:41:47 +0200 Subject: [PATCH] device: fix crash during reapply Fixes: bf3b3d444c7750a68a0771d99f48e663815e258e (cherry picked from commit fe1f5871c8c77796dbb92fe9bf2a2100e9755eeb) --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index e79bc5410a..d39fd68014 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -9486,7 +9486,7 @@ check_and_reapply_connection (NMDevice *self, if (diffs) { NMConnection *connection_clean = connection; - gs_free NMConnection *connection_clean_free = NULL; + gs_unref_object NMConnection *connection_clean_free = NULL; { NMSettingConnection *s_con_a, *s_con_n;