[PATCH] taskschd: Fix a leak on error path (Coverity)