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