platform: fix GError free function

Fixes: dd7810c473 ('platform: destroy VFs before changing the eswitch mode')
(cherry picked from commit 394f6281ea)
This commit is contained in:
Beniamino Galvani 2025-07-13 18:12:58 +02:00 committed by Íñigo Huguet
parent 43058de07a
commit 84c7533760

View file

@ -9208,7 +9208,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