memleak (part of #53)