#fixed code
                                public synchronized void trackContainerLog(String containerId, LogOutputSpec spec) throws FileNotFoundException {
        LogGetHandle handle = dockerAccess.getLogAsync(containerId, createLogCallback(spec));
        logHandles.put(containerId, handle);
    }
#vulnerable code 
                                public synchronized void trackContainerLog(String containerId, LogOutputSpec spec) throws FileNotFoundException {
        LogGetHandle handle = dockerAccess.getLogAsync(containerId, new DefaultLogCallback(spec));
        logHandles.put(containerId, handle);
    } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK