func: static void goodB2G() twoIntsStruct * data ; data = NULL; data = ( twoIntsStruct * ) realloc ( data , 100 * sizeof ( twoIntsStruct ) ); data [ 0 ] . intOne = 0; data [ 0 ] . intTwo = 0; CWE401_Memory_Leak__twoIntsStruct_realloc_82_base * baseObject = new CWE401_Memory_Leak__twoIntsStruct_realloc_82_goodB2G baseObject -> action ( data ); void CWE401_Memory_Leak__twoIntsStruct_realloc_82_goodB2G::action(twoIntsStruct * data) free ( data ); 