func: void bad() wchar_t * data ; data = NULL; CWE762_Mismatched_Memory_Management_Routines__new_free_wchar_t_84_bad * badObject = new CWE762_Mismatched_Memory_Management_Routines__new_free_wchar_t_84_bad ( data ) ; CWE762_Mismatched_Memory_Management_Routines__new_free_wchar_t_84_bad::CWE762_Mismatched_Memory_Management_Routines__new_free_wchar_t_84_bad(wchar_t * dataCopy) data = dataCopy; data = new wchar_t delete badObject CWE762_Mismatched_Memory_Management_Routines__new_free_wchar_t_84_bad::~CWE762_Mismatched_Memory_Management_Routines__new_free_wchar_t_84_bad() free ( data ); 