Fixed memory leak spotted while looking at #100