[openEuler-5.10-LTS 291/501] intel_th: Fix a resource leak in an error handling path