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