gatk-3.8/public/java/test
Khalid Shakir e57cd78bba Killed two more resource leakers that ignored requests to close wrapped file pointers, and added Unit Tests for each.
This bug will happen in all adapter/wrapper classes that are passed a resource, and then in their close method they ignore requests to close the wrapped resource, causing a leak when the adapter is the only one left with a reference to the resource.

Ex:

public Wrapper getNewWrapper(File path) {
  FileStream myStream = new FileStream(path); // This stream must be eventually closed.
  return new Wrapper(myStream);
}

public void close(Wrapper wrapper) {
  wrapper.close(); // If wrapper.close() does nothing, NO ONE else has a reference to close myStream.
}
2012-05-21 15:41:56 -04:00
..
net/sf Fix serious engine bug that could cause reads to be dropped under certain circumstances 2012-02-13 16:25:21 -05:00
org/broadinstitute/sting Killed two more resource leakers that ignored requests to close wrapped file pointers, and added Unit Tests for each. 2012-05-21 15:41:56 -04:00