network: Fix small memory leak

This commit is contained in:
Robert Ancell 2020-11-17 11:19:01 +13:00 committed by Robert Ancell
parent e58a504174
commit 25963ccf8c

View file

@ -177,7 +177,7 @@ get_secrets_cb (GObject *source_object,
gpointer data) gpointer data)
{ {
NetDeviceWifi *self = data; NetDeviceWifi *self = data;
GVariant *secrets; g_autoptr(GVariant) secrets = NULL;
g_autoptr(GError) error = NULL; g_autoptr(GError) error = NULL;
secrets = nm_remote_connection_get_secrets_finish (NM_REMOTE_CONNECTION (source_object), res, &error); secrets = nm_remote_connection_get_secrets_finish (NM_REMOTE_CONNECTION (source_object), res, &error);