func: static void goodB2G() wchar_t * data ; data = NULL; data = ( wchar_t * ) realloc ( data , 20 * sizeof ( wchar_t ) ); CWE690_NULL_Deref_From_Return__wchar_t_realloc_82_base * baseObject = new CWE690_NULL_Deref_From_Return__wchar_t_realloc_82_goodB2G baseObject -> action ( data ); void CWE690_NULL_Deref_From_Return__wchar_t_realloc_82_goodB2G::action(wchar_t * data) if ( data != NULL )  wcscpy ( data , L "Initialize" ) free ( data ); 