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