fix memory leak in SnappyOutputStream