func: void bad() wchar_t * data ; data = NULL; CWE690_NULL_Deref_From_Return__wchar_t_realloc_84_bad * badObject = new CWE690_NULL_Deref_From_Return__wchar_t_realloc_84_bad ( data ) ; CWE690_NULL_Deref_From_Return__wchar_t_realloc_84_bad::CWE690_NULL_Deref_From_Return__wchar_t_realloc_84_bad(wchar_t * dataCopy) data = dataCopy; data = ( wchar_t * ) realloc ( data , 20 * sizeof ( wchar_t ) ); delete badObject CWE690_NULL_Deref_From_Return__wchar_t_realloc_84_bad::~CWE690_NULL_Deref_From_Return__wchar_t_realloc_84_bad() wcscpy ( data , L "Initialize" ) free ( data ); 