mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
core: fix memleak releasing priv->path in NMIP4Config and NMIP6Config
This commit is contained in:
parent
c4e197d064
commit
fe5c51726f
2 changed files with 4 additions and 0 deletions
|
|
@ -1827,6 +1827,8 @@ finalize (GObject *object)
|
||||||
{
|
{
|
||||||
NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (object);
|
NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (object);
|
||||||
|
|
||||||
|
g_free (priv->path);
|
||||||
|
|
||||||
g_array_unref (priv->addresses);
|
g_array_unref (priv->addresses);
|
||||||
g_array_unref (priv->routes);
|
g_array_unref (priv->routes);
|
||||||
g_array_unref (priv->nameservers);
|
g_array_unref (priv->nameservers);
|
||||||
|
|
|
||||||
|
|
@ -1677,6 +1677,8 @@ finalize (GObject *object)
|
||||||
{
|
{
|
||||||
NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (object);
|
NMIP6ConfigPrivate *priv = NM_IP6_CONFIG_GET_PRIVATE (object);
|
||||||
|
|
||||||
|
g_free (priv->path);
|
||||||
|
|
||||||
g_array_unref (priv->addresses);
|
g_array_unref (priv->addresses);
|
||||||
g_array_unref (priv->routes);
|
g_array_unref (priv->routes);
|
||||||
g_array_unref (priv->nameservers);
|
g_array_unref (priv->nameservers);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue