Fix memory leak in WKB writer
Merge pull request #2 from chrismcbride/wkb_memory_leak

Fix memory leak in WKB writer