void main(){wchar_t * data;data=NULL;{wchar_t mystring[]=L"mystring";data=wcsdup(mystring);}{wchar_t * data_copy=data;wchar_t * data=data_copy;delete data;}}
static void main(){wchar_t * data;data=NULL;{wchar_t mystring[]=L"mystring";data=wcsdup(mystring);}{wchar_t * data_copy=data;wchar_t * data=data_copy;free(data);}}