func: void bad() int * data ; data = NULL; CWE401_Memory_Leak__int_malloc_84_bad * badObject = new CWE401_Memory_Leak__int_malloc_84_bad ( data ) ; CWE401_Memory_Leak__int_malloc_84_bad::CWE401_Memory_Leak__int_malloc_84_bad(int * dataCopy) data = ( int * ) malloc ( 100 * sizeof ( int ) ); data [ 0 ] = 5; printIntLine ( data [ 0 ] ); void printIntLine (int intNumber) printf ( "%d\n" , intNumber ); 