db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Mastrangelo" <mm...@ccs.neu.edu>
Subject ResultSet not being closed in RsIterator
Date Tue, 17 Dec 2002 16:10:34 GMT
In PersistenceBrokerImpl.getCollectionByQuery, there appears to be a memory leak. In queries
where a setEndAtIndex is used, the RsIterator may not call releaseDbResources() because the
end of the RsIterator may never be reached.  As the comments above releaseDbResources state,
the function must be called explicitely if the iterator is not exhausted.  However, getCollectionByQuery
never calls it, even though it doesn't always loop to the end of the RsIterator.  

Your comments on this would be appreciated.

Thanks,

Matt

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message