mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 22:20:27 +01:00
libnm-util: fix crash in NMSettingInfiniband when setting key or parent property
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
80a4b15252
commit
815245320d
1 changed files with 2 additions and 2 deletions
|
|
@ -292,12 +292,12 @@ set_property (GObject *object, guint prop_id,
|
|||
break;
|
||||
case PROP_P_KEY:
|
||||
priv->p_key = g_value_get_int (value);
|
||||
g_clear_pointer (&priv->virtual_iface_name, NULL);
|
||||
g_clear_pointer (&priv->virtual_iface_name, g_free);
|
||||
break;
|
||||
case PROP_PARENT:
|
||||
g_free (priv->parent);
|
||||
priv->parent = g_value_dup_string (value);
|
||||
g_clear_pointer (&priv->virtual_iface_name, NULL);
|
||||
g_clear_pointer (&priv->virtual_iface_name, g_free);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue