#vulnerable code 
                                public synchronized void fetchContainerLog(String containerId, LogOutputSpec spec) throws FileNotFoundException {
        dockerAccess.getLogSync(containerId, new DefaultLogCallback(spec));
    } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public synchronized void fetchContainerLog(String containerId, LogOutputSpec spec) throws FileNotFoundException {
        dockerAccess.getLogSync(containerId, createLogCallback(spec));
    }