#vulnerable code 
                                public static GoogleTaskUsageTraceReader getInstance(
        final List<DatacenterBroker> brokers,
        final String filePath)
    {
        final InputStream reader = ResourceLoader.getInputStream(filePath, GoogleTaskUsageTraceReader.class);
        return new GoogleTaskUsageTraceReader(brokers, filePath, reader);
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static GoogleTaskUsageTraceReader getInstance(
        final List<DatacenterBroker> brokers,
        final String filePath)
    {
        final InputStream reader = ResourceLoader.newInputStream(filePath, GoogleTaskUsageTraceReader.class);
        return new GoogleTaskUsageTraceReader(brokers, filePath, reader);
    }