public void addLeakingResource(LeakingResource resource){
synchronized (leakingResources) {
    leakingResources.add(resource);
  }
}

public void addLeakingResource ( LeakingResource resource ) { synchronized ( leakingResources ) { leakingResources . add ( resource ) ; } }
add a leaking resource to this vfs . this is mainly necessary for stream objects , even if they are virtual
