func: void bad() wchar_t * data ; wchar_t * & dataRef = data ; data = NULL; wchar_t dataBuffer [ 100 ] ; wmemset ( dataBuffer , L 'A' , 100 - 1 dataBuffer [ 100 - 1 ] = L '\0' data = dataBuffer; wchar_t * data = dataRef ; free ( data ); 