Add memory leak test.
Genocide meory leak !!
fix zlib memory leak

also, _fin_zstream is used only inside one method, so let's define it
there.
Merge pull request #42 from apngasm/memory_leak

Memory leak