func: static void goodG2B() long * data ; CWE590_Free_Memory_Not_on_Heap__free_long_static_67_structType myStruct ; data = NULL; long * dataBuffer = ( long * ) malloc ( 100 * sizeof ( long ) ) ; size_t i ; for (i = 0; i < 100; i++) dataBuffer [ i ] = 5L; data = dataBuffer; myStruct . structFirst = data; CWE590_Free_Memory_Not_on_Heap__free_long_static_67b_goodG2BSink ( myStruct ); void CWE590_Free_Memory_Not_on_Heap__free_long_static_67b_goodG2BSink(CWE590_Free_Memory_Not_on_Heap__free_long_static_67_structType myStruct) long * data = myStruct . structFirst ; free ( data ); 