func: void bad() char * data ; data = NULL; CWE415_Double_Free__malloc_free_char_84_bad * badObject = new CWE415_Double_Free__malloc_free_char_84_bad ( data ) ; CWE415_Double_Free__malloc_free_char_84_bad::CWE415_Double_Free__malloc_free_char_84_bad(char * dataCopy) data = dataCopy; data = ( char * ) malloc ( 100 * sizeof ( char ) ); free ( data ); delete badObject CWE415_Double_Free__malloc_free_char_84_bad::~CWE415_Double_Free__malloc_free_char_84_bad() free ( data ); 