[PATCH 4.9 310/310] vrf: Fix use after free and double free in vrf_finish_output