[PATCH 4.9 20/28] team: Fix double free in error path