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