[PATCH openEuler-1.0-LTS 099/103] share_pool: Free newly generated id when failed