diff --git a/libnm-core/nm-setting-8021x.c b/libnm-core/nm-setting-8021x.c index 0d61f91c5d..f8e0d270e6 100644 --- a/libnm-core/nm-setting-8021x.c +++ b/libnm-core/nm-setting-8021x.c @@ -2637,6 +2637,7 @@ nm_setting_802_1x_set_phase2_private_key (NMSetting8021x *setting, password_changed = TRUE; } + g_bytes_unref (priv->phase2_private_key); if (scheme == NM_SETTING_802_1X_CK_SCHEME_BLOB) { /* FIXME: potential race after verifying the private key above */ /* FIXME: ensure blob doesn't start with file:// */