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