[PATCH openEuler-22.03-LTS-SP1] tipc: fix UAF in error path