Fix for issue #7

This fixes the memory leak found in issue #7.