Send connman mailing list submissions to connman@lists.01.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.01.org/mailman/listinfo/connman or, via email, send a message with subject or body 'help' to connman-requ...@lists.01.org
You can reach the person managing the list at connman-ow...@lists.01.org When replying, please edit your Subject line so it is more specific than "Re: Contents of connman digest..." Today's Topics: 1. [PATCH] vpn: Fix memory leak (Slava Monich) ---------------------------------------------------------------------- Message: 1 Date: Tue, 18 Sep 2018 15:44:49 +0300 From: Slava Monich <slava.mon...@jolla.com> To: connman@lists.01.org Subject: [PATCH] vpn: Fix memory leak Message-ID: <1537274689-5524-1-git-send-email-slava.mon...@jolla.com> ==8003== 14 bytes in 1 blocks are definitely lost in loss record 844 of 3,229 ==8003== at 0x483F3EC: malloc (vg_replace_malloc.c) ==8003== by 0x4CD30DF: g_malloc (gmem.c) ==8003== by 0x4CEA185: g_strdup (gstrfuncs.c) ==8003== by 0x4CEB78B: g_strdupv (gstrfuncs.c) ==8003== by 0x4949B: resolv_result (vpn.c) ==8003== by 0x2ACC3: sort_and_return_results (gresolv.c) ==8003== by 0x2B667: parse_response (gresolv.c) ==8003== by 0x2B773: received_udp_data (gresolv.c) ==8003== by 0x4CCE06F: g_main_dispatch (gmain.c) ==8003== by 0x4CCE06F: g_main_context_dispatch (gmain.c) ==8003== by 0x4CCE58F: g_main_loop_run (gmain.c) ==8003== by 0x5430B: main (main.c) --- plugins/vpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vpn.c b/plugins/vpn.c index 0ff5b37..e55c4b8 100644 --- a/plugins/vpn.c +++ b/plugins/vpn.c @@ -1535,7 +1535,7 @@ static void connection_destroy(gpointer hash_data) g_free(data->type); g_free(data->name); g_free(data->host); - g_free(data->host_ip); + g_strfreev(data->host_ip); g_free(data->domain); g_hash_table_destroy(data->server_routes); g_hash_table_destroy(data->user_routes); -- 1.9.1 ------------------------------ Subject: Digest Footer _______________________________________________ connman mailing list connman@lists.01.org https://lists.01.org/mailman/listinfo/connman ------------------------------ End of connman Digest, Vol 35, Issue 8 **************************************