Free unique id
Unreference date time
Free caps, remove strdup