sean@SeanLaptop:~/Documents/Programming/C/Code/nm-applet/network-manager-applet-1.8.10$ valgrind nm-applet
==4047== Memcheck, a memory error detector
==4047== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==4047== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==4047== Command: nm-applet
==4047==
==4047== Invalid read of size 8
==4047==    at 0x78C942E: g_strfreev (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x788C45A: g_datalist_clear (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x761EEA1: g_object_unref (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x7896E40: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x6688186: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0x788C45A: g_datalist_clear (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x761EEA1: g_object_unref (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x11E29B: applet_secrets_request_free (applet.c:2852)
==4047==    by 0x1218FB: child_finished_cb (applet-vpn-request.c:117)
==4047==    by 0x78A5723: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x78A8E14: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x78A91DF: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==  Address 0x170ceb40 is 0 bytes inside a block of size 128 free'd
==4047==    at 0x4C2BE1B: free (vg_replace_malloc.c:530)
==4047==    by 0x12222D: connection_to_data (applet-vpn-request.c:212)
==4047==    by 0x12222D: connection_to_fd (applet-vpn-request.c:238)
==4047==    by 0x12222D: applet_vpn_request_get_secrets (applet-vpn-request.c:429)
==4047==    by 0x11E4F2: applet_agent_get_secrets_cb (applet.c:2917)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0xDDDC93E: ffi_call (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0x761AB7C: g_cclosure_marshal_generic_va (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x761A1D5: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x763575E: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x7635E8E: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x1203B3: ask_for_secrets (applet-agent.c:190)
==4047==    by 0x66805AF: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==  Block was alloc'd at
==4047==    at 0x4C2AB1F: malloc (vg_replace_malloc.c:298)
==4047==    by 0x4C2CE9F: realloc (vg_replace_malloc.c:785)
==4047==    by 0x78AE61F: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x787BA38: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x787CBEA: g_ptr_array_add (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x66B8C86: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0x11847C: _get_keys (nm-compat.c:51)
==4047==    by 0x1221C7: connection_to_data (applet-vpn-request.c:207)
==4047==    by 0x1221C7: connection_to_fd (applet-vpn-request.c:238)
==4047==    by 0x1221C7: applet_vpn_request_get_secrets (applet-vpn-request.c:429)
==4047==    by 0x11E4F2: applet_agent_get_secrets_cb (applet.c:2917)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0xDDDC93E: ffi_call (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0x761AB7C: g_cclosure_marshal_generic_va (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==
==4047== Invalid read of size 8
==4047==    at 0x78C9449: g_strfreev (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x788C45A: g_datalist_clear (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x761EEA1: g_object_unref (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x7896E40: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x6688186: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0x788C45A: g_datalist_clear (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x761EEA1: g_object_unref (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x11E29B: applet_secrets_request_free (applet.c:2852)
==4047==    by 0x1218FB: child_finished_cb (applet-vpn-request.c:117)
==4047==    by 0x78A5723: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x78A8E14: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x78A91DF: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==  Address 0x170ceb48 is 8 bytes inside a block of size 128 free'd
==4047==    at 0x4C2BE1B: free (vg_replace_malloc.c:530)
==4047==    by 0x12222D: connection_to_data (applet-vpn-request.c:212)
==4047==    by 0x12222D: connection_to_fd (applet-vpn-request.c:238)
==4047==    by 0x12222D: applet_vpn_request_get_secrets (applet-vpn-request.c:429)
==4047==    by 0x11E4F2: applet_agent_get_secrets_cb (applet.c:2917)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0xDDDC93E: ffi_call (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0x761AB7C: g_cclosure_marshal_generic_va (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x761A1D5: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x763575E: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x7635E8E: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x1203B3: ask_for_secrets (applet-agent.c:190)
==4047==    by 0x66805AF: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==  Block was alloc'd at
==4047==    at 0x4C2AB1F: malloc (vg_replace_malloc.c:298)
==4047==    by 0x4C2CE9F: realloc (vg_replace_malloc.c:785)
==4047==    by 0x78AE61F: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x787BA38: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x787CBEA: g_ptr_array_add (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x66B8C86: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0x11847C: _get_keys (nm-compat.c:51)
==4047==    by 0x1221C7: connection_to_data (applet-vpn-request.c:207)
==4047==    by 0x1221C7: connection_to_fd (applet-vpn-request.c:238)
==4047==    by 0x1221C7: applet_vpn_request_get_secrets (applet-vpn-request.c:429)
==4047==    by 0x11E4F2: applet_agent_get_secrets_cb (applet.c:2917)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0xDDDC93E: ffi_call (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0x761AB7C: g_cclosure_marshal_generic_va (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==
==4047== Invalid free() / delete / delete[] / realloc()
==4047==    at 0x4C2BE1B: free (vg_replace_malloc.c:530)
==4047==    by 0x788C45A: g_datalist_clear (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x761EEA1: g_object_unref (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x7896E40: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x6688186: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0x788C45A: g_datalist_clear (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x761EEA1: g_object_unref (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x11E29B: applet_secrets_request_free (applet.c:2852)
==4047==    by 0x1218FB: child_finished_cb (applet-vpn-request.c:117)
==4047==    by 0x78A5723: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x78A8E14: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x78A91DF: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==  Address 0x170ceb40 is 0 bytes inside a block of size 128 free'd
==4047==    at 0x4C2BE1B: free (vg_replace_malloc.c:530)
==4047==    by 0x12222D: connection_to_data (applet-vpn-request.c:212)
==4047==    by 0x12222D: connection_to_fd (applet-vpn-request.c:238)
==4047==    by 0x12222D: applet_vpn_request_get_secrets (applet-vpn-request.c:429)
==4047==    by 0x11E4F2: applet_agent_get_secrets_cb (applet.c:2917)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0xDDDC93E: ffi_call (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0x761AB7C: g_cclosure_marshal_generic_va (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x761A1D5: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x763575E: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x7635E8E: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==    by 0x1203B3: ask_for_secrets (applet-agent.c:190)
==4047==    by 0x66805AF: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==  Block was alloc'd at
==4047==    at 0x4C2AB1F: malloc (vg_replace_malloc.c:298)
==4047==    by 0x4C2CE9F: realloc (vg_replace_malloc.c:785)
==4047==    by 0x78AE61F: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x787BA38: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x787CBEA: g_ptr_array_add (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.2)
==4047==    by 0x66B8C86: ??? (in /usr/lib/x86_64-linux-gnu/libnm.so.0.1.0)
==4047==    by 0x11847C: _get_keys (nm-compat.c:51)
==4047==    by 0x1221C7: connection_to_data (applet-vpn-request.c:207)
==4047==    by 0x1221C7: connection_to_fd (applet-vpn-request.c:238)
==4047==    by 0x1221C7: applet_vpn_request_get_secrets (applet-vpn-request.c:429)
==4047==    by 0x11E4F2: applet_agent_get_secrets_cb (applet.c:2917)
==4047==    by 0xDDDCFCD: ffi_call_unix64 (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0xDDDC93E: ffi_call (in /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4)
==4047==    by 0x761AB7C: g_cclosure_marshal_generic_va (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.2)
==4047==

