core: fix memleak releasing priv->path in NMIP4Config and NMIP6Config

This commit is contained in:
Thomas Haller 2015-01-28 22:48:53 +01:00
parent c4e197d064
commit fe5c51726f
2 changed files with 4 additions and 0 deletions

View file

@ -1827,6 +1827,8 @@ finalize (GObject *object)
{
NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (object);
g_free (priv->path);
g_array_unref (priv->addresses);
g_array_unref (priv->routes);
g_array_unref (priv->nameservers);

View file

@ -1677,6 +1677,8 @@ finalize (GObject *object)
{
NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (object);
g_free (priv->path);
g_array_unref (priv->addresses);
g_array_unref (priv->routes);
g_array_unref (priv->nameservers);