[quote user="mastupristi"]I wonder if the Clock_create() allocate some memory, who deallocate it and when?[/quote]
Yes. Immediately in the context of the calling Task. You should check "myClock" to see if there was an error in creating the clock instance (such as allocating memory).
It also gets immediately deallocated when a task calls Clock_delete.