[PATCH net] tipc: fix UAF in error path