func: static void goodB2G() wchar_t * data ; data = NULL; CWE762_Mismatched_Memory_Management_Routines__strdup_delete_wchar_t_84_goodB2G * goodB2GObject = new CWE762_Mismatched_Memory_Management_Routines__strdup_delete_wchar_t_84_goodB2G ( data ) ; CWE762_Mismatched_Memory_Management_Routines__strdup_delete_wchar_t_84_goodB2G::CWE762_Mismatched_Memory_Management_Routines__strdup_delete_wchar_t_84_goodB2G(wchar_t * dataCopy) data = dataCopy; wchar_t myString [ ] = L "myString" data = wcsdup ( myString ); delete goodB2GObject CWE762_Mismatched_Memory_Management_Routines__strdup_delete_wchar_t_84_goodB2G::~CWE762_Mismatched_Memory_Management_Routines__strdup_delete_wchar_t_84_goodB2G() free ( data ); 