Revert "Fix potential memory leak"

This reverts commit 50d34e5653ade4f3f1623c86f1426aeb746ae564.
Merge pull request #881 from hintjens/master

Revert "Fix potential memory leak"