func: void bad() struct _twoIntsStruct * data ; data = NULL; CWE401_Memory_Leak__struct_twoIntsStruct_malloc_84_bad * badObject = new CWE401_Memory_Leak__struct_twoIntsStruct_malloc_84_bad ( data ) ; CWE401_Memory_Leak__struct_twoIntsStruct_malloc_84_bad::CWE401_Memory_Leak__struct_twoIntsStruct_malloc_84_bad(struct _twoIntsStruct * dataCopy) data = ( struct _twoIntsStruct * ) malloc ( 100 * sizeof ( struct _twoIntsStruct ) ); data [ 0 ] . intOne = 0; data [ 0 ] . intTwo = 0; printStructLine ( ( twoIntsStruct * ) & data [ 0 ] ); void printStructLine (const twoIntsStruct * structTwoIntsStruct) printf ( "%d -- %d\n" , structTwoIntsStruct -> intOne , structTwoIntsStruct -> intTwo ); 