simplified etterlog with ec_ctime instead of time
Removing duplicate SAFE_CALLOC