brianmario/bzip2-ruby — pull request #12 by noahhaon (2012-01-10 01:38:30+00:00)
Title: Fix memory leak in bz_reader_read

bz_reader_read never frees any of the buffers it allocates for uncompressed data.

I found this behavior to be sub-optimal so I made it free the buffers before returning the ruby string. Probably a better way to do this, but at least Bzip2.uncompress doesn't leak anymore...