keyfile: fix freeing connection in error path of nm_keyfile_read()

Fixes: 04df4edf48
This commit is contained in:
Thomas Haller 2018-04-16 12:56:59 +02:00
parent 6ff613c21f
commit 1636e6411b

View file

@ -1940,6 +1940,6 @@ nm_keyfile_read (GKeyFile *keyfile,
return connection;
out_error:
g_propagate_error (error, info.error);
g_free (connection);
g_object_unref (connection);
return NULL;
}