platform: fix GError free function

Fixes: dd7810c473 ('platform: destroy VFs before changing the eswitch mode')
This commit is contained in:
Beniamino Galvani 2025-07-13 18:12:58 +02:00
parent 4938507de8
commit 394f6281ea

View file

@ -9249,7 +9249,7 @@ sriov_async_finish_err(SriovAsyncState *async_state, GError *error)
g_object_unref(async_state->platform);
g_object_unref(async_state->cancellable);
g_free(async_state);
g_free(error);
nm_g_error_free(error);
}
static void