NetworkManager/libnm-util
Thomas Haller 3eb1d5e902 core: cleanup freeing of glib collections of pointers
When freeing one of the collections such as GArray, GPtrArray, GSList,
etc. it is common that the items inside the connections must be
freed/unrefed too.

The previous code often iterated over the collection first with
e.g. g_ptr_array_foreach and passing e.g. g_free as GFunc argument.
For one, this has the problem, that g_free has a different signature
GDestroyNotify then the expected GFunc. Moreover, this can be
simplified either by setting a clear function
(g_ptr_array_set_clear_func) or by passing the destroy function to the
free function (g_slist_free_full).

Signed-off-by: Thomas Haller <thaller@redhat.com>
2013-10-22 19:53:57 +02:00
..
tests core: remove 'wep40' and 'wep104' from several places in NM 2013-09-18 12:07:29 +02:00
COPYING doc: fix FSF address (bgo #575625) 2009-09-10 21:03:30 -04:00
crypto.c libnm-util: free temporary decoded base64 data when parsing OpenSSL key files 2013-03-08 09:27:51 -06:00
crypto.h libnm-util: recognize PKCS#8 private keys and check passwords (bgo #649326) 2011-05-13 14:22:06 -05:00
crypto_gnutls.c all: remove pointless NULL checks 2013-02-13 13:38:13 -05:00
crypto_nss.c all: remove pointless NULL checks 2013-02-13 13:38:13 -05:00
libnm-util.pc.in libnm-glib,libnm-util: -glib requires -util, -util requires NetworkManager 2013-03-14 10:23:19 -05:00
libnm-util.ver libnm-util: add setting for team port 2013-08-15 10:54:14 -05:00
Makefile.am libnm-util, libnm-glib: bump .so versions to be higher than 0.9.8.4's 2013-09-25 10:16:55 -04:00
nm-connection.c Fix typos 2013-10-19 11:49:18 -04:00
nm-connection.h libnm-util: add setting for team port 2013-08-15 10:54:14 -05:00
nm-param-spec-specialized.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-param-spec-specialized.h Rename private nm_* functions to _nm_* 2008-08-26 09:34:31 +00:00
nm-setting-8021x.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-8021x.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-adsl.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-adsl.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-bluetooth.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-bluetooth.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-bond.c core: avoid use-after-free in libnm-util/bond.verify() 2013-10-08 22:33:19 +02:00
nm-setting-bond.h libnm-util: support the "primary" bond option 2013-09-27 09:34:41 -04:00
nm-setting-bridge-port.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-bridge-port.h libnm-util: add Since tags to new functions and properties 2013-02-22 08:34:06 -06:00
nm-setting-bridge.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-bridge.h libnm-util: add Since tags to new functions and properties 2013-02-22 08:34:06 -06:00
nm-setting-cdma.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-cdma.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-connection.c libnm: more valgrinding fixes 2013-10-03 11:04:45 -04:00
nm-setting-connection.h libnm-util: add gateway-ping-timeout property to connection setting 2013-06-21 16:17:18 -05:00
nm-setting-generic.c libnm-util: add NMSettingGeneric 2013-05-07 12:46:56 -04:00
nm-setting-generic.h libnm-util: add NMSettingGeneric 2013-05-07 12:46:56 -04:00
nm-setting-gsm.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-gsm.h libnm-util: deprecate 'network-type' and 'allowed-bands' in GSM settings 2013-06-05 12:39:24 -05:00
nm-setting-infiniband.c trivial: use capital "B" in InfiniBand 2013-07-22 10:34:38 +02:00
nm-setting-infiniband.h libnm-util: add P_Key support to NMSettingInfiniband 2013-06-13 15:52:51 -03:00
nm-setting-ip4-config.c ifcfg-rh: reader: allow device to not have ipv4 setting. 2013-08-22 08:51:48 -04:00
nm-setting-ip4-config.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-ip6-config.c trivial: fix a typo in description of ipv6.method in libnm-util 2013-09-04 12:56:17 +02:00
nm-setting-ip6-config.h dhcp: fix DHCPv6 to support server-side dynamic DNS (bgo #684242) 2012-11-16 17:26:19 -06:00
nm-setting-olpc-mesh.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-olpc-mesh.h docs: document OLPC Mesh setting errors 2012-08-06 19:51:23 -05:00
nm-setting-ppp.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-ppp.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-pppoe.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-pppoe.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-private.h libnm-util: add NM_SETTING_COMPARE_FLAG_CANDIDATE flag 2013-08-22 22:06:47 +02:00
nm-setting-serial.c libnm-util: clean up setting registration 2012-10-29 15:12:58 -05:00
nm-setting-serial.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-team-port.c libnm-util: update description of team:config and team-port:config properties 2013-09-06 13:52:27 +02:00
nm-setting-team-port.h libnm-util: add setting for team port 2013-08-15 10:54:14 -05:00
nm-setting-team.c libnm-util: update description of team:config and team-port:config properties 2013-09-06 13:52:27 +02:00
nm-setting-team.h libnm-util: add team device setting 2013-08-15 10:53:03 -05:00
nm-setting-template.c test: add missing return values 2011-10-10 16:02:27 -05:00
nm-setting-template.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-vlan.c libnm: more valgrinding fixes 2013-10-03 11:04:45 -04:00
nm-setting-vlan.h Revert :carrier-detect properties and associated code 2013-04-03 10:23:49 -04:00
nm-setting-vpn.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-setting-vpn.h libnm-util: make nm_setting_vpn_remove_*() return gboolean instead of void 2013-04-03 08:35:47 +02:00
nm-setting-wimax.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-wimax.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-wired.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-setting-wired.h libnm-util: add access functions for 'mac-address-blacklist' to wired/wireless 2013-05-07 19:38:31 +02:00
nm-setting-wireless-security.c libnm-util: prefix errors with 'setting.property' instead of 'property' only 2013-06-13 10:05:18 +02:00
nm-setting-wireless-security.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-wireless.c libnm-util: fix nm_setting_wireless_ap_security_compatible() 2013-09-03 13:47:46 -04:00
nm-setting-wireless.h libnm-util: deprecate 'security' property of '802-11-wireless' setting 2013-09-02 09:46:31 +02:00
nm-setting.c libnm-util: fix hashing of secrets broken by 4d326182 2013-05-20 13:56:48 -05:00
nm-setting.h libnm-util: add NM_SETTING_COMPARE_FLAG_CANDIDATE flag 2013-08-22 22:06:47 +02:00
nm-utils-private.h Revert :carrier-detect properties and associated code 2013-04-03 10:23:49 -04:00
nm-utils.c libnm-util: remove reference to non-existent "Posix" namespace 2013-10-11 10:16:41 -04:00
nm-utils.h libnm-util: add nm_utils_hwaddr_valid() 2013-06-13 15:52:51 -03:00
nm-value-transforms.c all: replace struct in_addr with guint32 2013-08-03 00:15:07 -05:00