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