func: void bad() long * data ; data = NULL; static long dataBuffer [ 100 ] ; size_t i ; for (i = 0; i < 100; i++) dataBuffer [ i ] = 5L; data = dataBuffer; CWE590_Free_Memory_Not_on_Heap__free_long_static_82_base * baseObject = new CWE590_Free_Memory_Not_on_Heap__free_long_static_82_bad baseObject -> action ( data ); void CWE590_Free_Memory_Not_on_Heap__free_long_static_82_bad::action(long * data) free ( data ); 