[PATCH OLK-5.10 v8 09/20] sched: Fix memory leak on error branch