test for memory leak issue #26