libnm-util: fix minor memory leak in infiniband setting

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2013-11-27 20:55:58 +01:00
parent 5cdd592457
commit b8b8af38c1

View file

@ -296,6 +296,7 @@ set_property (GObject *object, guint prop_id,
g_clear_pointer (&priv->virtual_iface_name, NULL);
break;
case PROP_PARENT:
g_free (priv->parent);
priv->parent = g_value_dup_string (value);
g_clear_pointer (&priv->virtual_iface_name, NULL);
break;