Deallocate correctly with original block size.
Merge pull request #37 from rrthomas/master

Fix deallocation of memory blocks