device: fix crash during reapply

Fixes: bf3b3d444c
(cherry picked from commit fe1f5871c8)
This commit is contained in:
Thomas Haller 2018-06-14 10:41:47 +02:00
parent 66b35bc5a2
commit 28cf2ecd0d

View file

@ -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;