func: static void goodB2G() char * data ; data = NULL; CWE401_Memory_Leak__char_malloc_84_goodB2G * goodB2GObject = new CWE401_Memory_Leak__char_malloc_84_goodB2G ( data ) ; CWE401_Memory_Leak__char_malloc_84_goodB2G::CWE401_Memory_Leak__char_malloc_84_goodB2G(char * dataCopy) data = dataCopy; data = ( char * ) malloc ( 100 * sizeof ( char ) ); strcpy ( data , "A String" ); printLine ( data ); delete goodB2GObject CWE401_Memory_Leak__char_malloc_84_goodB2G::~CWE401_Memory_Leak__char_malloc_84_goodB2G() free ( data ); 