Reported by valgrind --- plugins/vpn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/plugins/vpn.c b/plugins/vpn.c index 45639a1..25711d7 100644 --- a/plugins/vpn.c +++ b/plugins/vpn.c @@ -194,8 +194,10 @@ static void resolv_result(GResolvResultStatus status, DBG("status %d", status); if (status == G_RESOLV_RESULT_STATUS_SUCCESS && results && - g_strv_length(results) > 0) + g_strv_length(results) > 0) { + g_strfreev(data->host_ip); data->host_ip = g_strdupv(results); + } /* * We cannot unref the resolver here as resolv struct is manipulated -- 1.8.3.1 _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman