func: static void goodG2B() FILE * data ; CWE675_Duplicate_Operations_on_Resource__freopen_67_structType myStruct ; data = NULL; data = fopen ( "GoodSource_fopen.txt" , "w+" ); myStruct . structFirst = data; CWE675_Duplicate_Operations_on_Resource__freopen_67b_goodG2BSink ( myStruct ); void CWE675_Duplicate_Operations_on_Resource__freopen_67b_goodG2BSink(CWE675_Duplicate_Operations_on_Resource__freopen_67_structType myStruct) FILE * data = myStruct . structFirst ; fclose ( data ); 