func: static void goodB2G() struct _twoIntsStruct * data ; data = ( struct _twoIntsStruct * ) calloc ( 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 ); dataArray [ 2 ] = data; CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_goodB2GSink ( dataArray ); void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_goodB2GSink(struct _twoIntsStruct * dataArray[]) struct _twoIntsStruct * data = dataArray [ 2 ] ; free ( data ); 