[PATCH 5.19 0786/1157] intel_th: Fix a resource leak in an error handling path