rem: char* orig_env_str = (char*)malloc(tmp_sz);
add: char* orig_env_str = (char*)icalmemory_tmp_buffer(tmp_sz);
context: void unset_tz(struct set_tz_save savetz){    /* restore the original TZ environment */    char* orig_tzid = savetz.orig_tzid;    if(orig_tzid!=0){		size_t tmp_sz =strlen(orig_tzid)+4; 	char* orig_env_str = (char*)malloc(tmp_sz);	if(orig_env_str == 0){            icalerror_set_errno(ICAL_NEWFAILED_ERROR);            return;	}		strcpy(orig_env_str,"TZ=");	strcpy(orig_env_str+3,orig_tzid);	putenv(orig_env_str);	free(orig_tzid);    } else {	putenv("TZ"); /* Delete from environment */    }     if(savetz.new_env_str != 0){	free(savetz.new_env_str);    }}