func: void CWE675_Duplicate_Operations_on_Resource__freopen_12_bad() FILE * data ; data = NULL; if ( globalReturnsTrueOrFalse ( ) )  int globalReturnsTrueOrFalse() return ( rand ( ) % 2 ) ; data = freopen ( "BadSource_freopen.txt" , "w+" , stdin ); data = fopen ( "GoodSource_fopen.txt" , "w+" ); if ( globalReturnsTrueOrFalse ( ) )  int globalReturnsTrueOrFalse() return ( rand ( ) % 2 ) ; fclose ( data ); 