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