func: void bad() int * data ; data = NULL; CWE690_NULL_Deref_From_Return__int_malloc_84_bad * badObject = new CWE690_NULL_Deref_From_Return__int_malloc_84_bad ( data ) ; CWE690_NULL_Deref_From_Return__int_malloc_84_bad::CWE690_NULL_Deref_From_Return__int_malloc_84_bad(int * dataCopy) data = dataCopy; data = ( int * ) malloc ( 1 * sizeof ( int ) ); delete badObject CWE690_NULL_Deref_From_Return__int_malloc_84_bad::~CWE690_NULL_Deref_From_Return__int_malloc_84_bad() data [ 0 ] = 5; free ( data ); 