mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
gnetworkmonitornetlink: don't leak the list of networks
https://bugzilla.gnome.org/show_bug.cgi?id=676265
This commit is contained in:
parent
0ecbb0a404
commit
17e95c59c9
@ -285,7 +285,7 @@ finish_dump (GNetworkMonitorNetlink *nl)
|
||||
g_network_monitor_base_set_networks (G_NETWORK_MONITOR_BASE (nl),
|
||||
(GInetAddressMask **)nl->priv->dump_networks->pdata,
|
||||
nl->priv->dump_networks->len);
|
||||
g_ptr_array_free (nl->priv->dump_networks, FALSE);
|
||||
g_ptr_array_free (nl->priv->dump_networks, TRUE);
|
||||
nl->priv->dump_networks = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user