[PATCH 1/3] taskschd: Use standard C functions for memory allocation in regtask.c.