Commit 579373a5 authored by Beniamino Galvani's avatar Beniamino Galvani

dns: fix memory leak of error

The error was leaked when cancelled.

Fixes: 818023c2 ('dns/resolved: add systemd-resolved backend')
parent fc4aedc6
Pipeline #26498 failed with stages
in 31 minutes and 21 seconds
......@@ -122,7 +122,7 @@ static void
call_done (GObject *source, GAsyncResult *r, gpointer user_data)
GVariant *v;
GError *error = NULL;
gs_free_error GError *error = NULL;
NMDnsSystemdResolved *self = (NMDnsSystemdResolved *) user_data;
v = g_dbus_proxy_call_finish (G_DBUS_PROXY (source), r, &error);
......@@ -130,7 +130,6 @@ call_done (GObject *source, GAsyncResult *r, gpointer user_data)
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
_LOGW ("Failed: %s", error->message);
g_error_free (error);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment