Recently, the filename for SamFile was copied internally (correct)
(see http://code.google.com/p/pysam/issues/detail?id=52)
but it is not freed on dealloc/close.
def __dealloc__( self ):
# remember: dealloc cannot call other methods
# note: no doc string
# note: __del__ is not called.
self.close()
bam_destroy1(self.b)
should probable read
def __dealloc__( self ):
# remember: dealloc cannot call other methods
# note: no doc string
# note: __del__ is not called.
self.close()
bam_destroy1(self.b)
free(self._filename)
Thanks!
Original issue reported on code.google.com by finkerna...@mathematik.uni-marburg.de on 9 Feb 2011 at 5:39
Original issue reported on code.google.com by
finkerna...@mathematik.uni-marburg.de
on 9 Feb 2011 at 5:39