[PATCH v2 3/4] taskschd: Use standard C functions for memory allocation in task.c.