add helper method to free direct buffers
Merge pull request #14 from metamx/free-bytebuffer

add helper method to free direct buffers