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