Blob Blame History Raw
From a8fd038e0c022a68fb557d0d32691b43be5e63b9 Mon Sep 17 00:00:00 2001
From: Thomas Haller <thaller@redhat.com>
Date: Thu, 14 Jun 2018 10:41:47 +0200
Subject: [PATCH 1/1] device: fix crash during reapply

Fixes: bf3b3d444c7750a68a0771d99f48e663815e258e
(cherry picked from commit fe1f5871c8c77796dbb92fe9bf2a2100e9755eeb)
(cherry picked from commit 28cf2ecd0dd9cfca949b7eac17b12dfe87a7c04c)
---
 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 22594872a..28d449e7a 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -9340,7 +9340,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;
-- 
2.17.1