#fixed code
                             protected AlgorithmExecutor buildExecutor(String algorithmName) throws FileNotFoundException, UnsupportedEncodingException {
		LinkedList<ResultPrinter> resultPrinters = new LinkedList<ResultPrinter>();
		
		FunctionalDependencyPrinter fdResultReceiver = 
				new FunctionalDependencyPrinter(getResultFileName(algorithmName), getResultDirectoryName());
		resultPrinters.add(fdResultReceiver);
		
		InclusionDependencyPrinter indResultReceiver = 
				new InclusionDependencyPrinter(getResultFileName(algorithmName), getResultDirectoryName());
		resultPrinters.add(indResultReceiver);
		
		UniqueColumnCombinationPrinter uccResultReceiver = 
				new UniqueColumnCombinationPrinter(getResultFileName(algorithmName), getResultDirectoryName());
		resultPrinters.add(uccResultReceiver);
		
		FileGenerator fileGenerator = new TempFileGenerator();
		
		AlgorithmExecutor executor = new AlgorithmExecutor(fdResultReceiver, indResultReceiver, uccResultReceiver, fileGenerator);
		currentResultPrinters.put(algorithmName, resultPrinters);
		return executor;
	}
#vulnerable code 
                             protected AlgorithmExecutor buildExecutor(String algorithmName) throws FileNotFoundException, UnsupportedEncodingException {
		FunctionalDependencyResultReceiver fdResultReceiver = 
				new FunctionalDependencyPrinter(getResultFileName(algorithmName), getResultDirectoryName());
		InclusionDependencyResultReceiver indResultReceiver = 
				new InclusionDependencyPrinter(getResultFileName(algorithmName), getResultDirectoryName());
		UniqueColumnCombinationResultReceiver uccResultReceiver = 
				new UniqueColumnCombinationPrinter(getResultFileName(algorithmName), getResultDirectoryName());
		FileGenerator fileGenerator = new TempFileGenerator();
		
		return new AlgorithmExecutor(fdResultReceiver, indResultReceiver, uccResultReceiver, fileGenerator);
	} 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK