Removing duplicate SAFE_CALLOC