NetworkManager/libnm-util
Dan Williams 2878481c09 libnm-util: free temporary GByteArray when using NM_SETTING_802_1X_CK_SCHEME_PATH
If the certificate's format was valid, but we're asked to refer to it by
paths instead of using the raw data, 'data' would be leaked.

==23089== 8,232 (40 direct, 8,192 indirect) bytes in 1 blocks are definitely lost in loss record 5,109 of 5,123
==23089==    at 0x4A0881C: malloc (vg_replace_malloc.c:270)
==23089==    by 0x39B905488E: g_malloc (gmem.c:159)
==23089==    by 0x39B9068CA1: g_slice_alloc (gslice.c:1003)
==23089==    by 0x39B9024539: g_array_sized_new (garray.c:195)
==23089==    by 0x31FC0146EA: file_to_g_byte_array (crypto.c:319)
==23089==    by 0x31FC01543B: crypto_load_and_verify_certificate (crypto.c:606)
==23089==    by 0x31FC01ED26: nm_setting_802_1x_set_client_cert (nm-setting-8021x.c:819)
==23089==    by 0xC6944A4: eap_tls_reader (reader.c:2316)
==23089==    by 0xC692756: fill_8021x (reader.c:2714)
==23089==    by 0xC696151: wireless_connection_from_ifcfg (reader.c:2832)
==23089==    by 0xC698E3A: connection_from_file (reader.c:4316)
==23089==    by 0xC69135C: nm_ifcfg_connection_new (nm-ifcfg-connection.c:119)
==23089==
==23089== 8,352 (160 direct, 8,192 indirect) bytes in 4 blocks are definitely lost in loss record 5,110 of 5,123
==23089==    at 0x4A0881C: malloc (vg_replace_malloc.c:270)
==23089==    by 0x39B905488E: g_malloc (gmem.c:159)
==23089==    by 0x39B9068CA1: g_slice_alloc (gslice.c:1003)
==23089==    by 0x39B9024539: g_array_sized_new (garray.c:195)
==23089==    by 0x31FC0146EA: file_to_g_byte_array (crypto.c:319)
==23089==    by 0x31FC01543B: crypto_load_and_verify_certificate (crypto.c:606)
==23089==    by 0x31FC01E5E6: nm_setting_802_1x_set_ca_cert (nm-setting-8021x.c:538)
==23089==    by 0xC694DD8: eap_peap_reader (reader.c:2358)
==23089==    by 0xC692756: fill_8021x (reader.c:2714)
==23089==    by 0xC696151: wireless_connection_from_ifcfg (reader.c:2832)
==23089==    by 0xC698E3A: connection_from_file (reader.c:4316)
==23089==    by 0xC69135C: nm_ifcfg_connection_new (nm-ifcfg-connection.c:119)
2013-03-08 09:27:51 -06:00
..
tests build: avoid GValueArray deprecation warnings 2013-02-26 13:07:33 +01:00
COPYING doc: fix FSF address (bgo #575625) 2009-09-10 21:03:30 -04:00
crypto.c all: remove pointless NULL checks 2013-02-13 13:38:13 -05: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 build: pkg-config file fixes 2010-01-20 16:53:04 -08:00
libnm-util.ver core: Update device activation for :carrier-detect 2013-02-15 13:40:39 -05:00
Makefile.am libnm-util: bump soname for added functions 2013-02-22 08:34:19 -06:00
nm-connection.c all: remove redundant return-if-fail checks 2013-03-07 07:32:27 -05:00
nm-connection.h core: Update device activation for :carrier-detect 2013-02-15 13:40:39 -05:00
nm-param-spec-specialized.c libnm-util: clean up some private symbols 2012-07-23 09:17:04 -05: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: free temporary GByteArray when using NM_SETTING_802_1X_CK_SCHEME_PATH 2013-03-08 09:27:51 -06: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: clean up setting registration 2012-10-29 15:12:58 -05:00
nm-setting-adsl.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-bluetooth.c trivial: plug some memory leaks 2013-02-25 16:07:03 +01:00
nm-setting-bluetooth.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-bond.c libnm-util: clean up setting registration 2012-10-29 15:12:58 -05:00
nm-setting-bond.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-bridge-port.c libnm-util: add Since tags to new functions and properties 2013-02-22 08:34:06 -06: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: add Since tags to new functions and properties 2013-02-22 08:34:06 -06: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: clean up setting registration 2012-10-29 15:12:58 -05: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-util: add Since tags to new functions and properties 2013-02-22 08:34:06 -06:00
nm-setting-connection.h libnm-util: add "secondaries" property containing secondary connection UUIDs 2012-09-21 13:46:54 +02:00
nm-setting-gsm.c libnm-util: clean up setting registration 2012-10-29 15:12:58 -05:00
nm-setting-gsm.h core: add settings for 4G (LTE) network modes 2012-09-11 11:47:22 -05:00
nm-setting-infiniband.c trivial: plug some memory leaks 2013-02-25 16:07:03 +01:00
nm-setting-infiniband.h libnm-utils: add :carrier-detect properties 2013-02-15 13:40:38 -05:00
nm-setting-ip4-config.c trivial: fix typos, wrong log domain in DHCPv4 2012-11-20 08:59:55 -06: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 libnm-util: add Since tags to new functions and properties 2013-02-22 08:34:06 -06: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: clean up setting registration 2012-10-29 15:12:58 -05: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: clean up setting registration 2012-10-29 15:12:58 -05: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: clean up setting registration 2012-10-29 15:12:58 -05: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: clean up setting registration 2012-10-29 15:12:58 -05: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-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 trivial: plug some memory leaks 2013-02-25 16:07:03 +01:00
nm-setting-vlan.h libnm-utils: add :carrier-detect properties 2013-02-15 13:40:38 -05:00
nm-setting-vpn.c all: remove redundant return-if-fail checks 2013-03-07 07:32:27 -05:00
nm-setting-vpn.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-wimax.c libnm-util: clean up setting registration 2012-10-29 15:12:58 -05:00
nm-setting-wimax.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-wired.c libnm-util: fix leak of s390 subchannels 2013-03-08 09:27:51 -06:00
nm-setting-wired.h libnm-utils: add :carrier-detect properties 2013-02-15 13:40:38 -05:00
nm-setting-wireless-security.c all: remove pointless NULL checks 2013-02-13 13:38:13 -05: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: clean up setting registration 2012-10-29 15:12:58 -05:00
nm-setting-wireless.h libnm-util: add Since tags to new functions and properties 2013-02-22 08:34:06 -06:00
nm-setting.c all: remove redundant return-if-fail checks 2013-03-07 07:32:27 -05:00
nm-setting.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-utils-private.h libnm-utils: add :carrier-detect properties 2013-02-15 13:40:38 -05:00
nm-utils.c libnm-glib: work around possible compiler bug with GValueArray deprecation workarounds 2013-02-27 17:16:27 +01:00
nm-utils.h libnm-util: move verify_wep_key() and verify_wpa_psk() to nm-utils.c 2013-02-06 13:29:58 +01:00