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