Bugfix: memory leak in example code in README.md