Fixed a memory leak caused by bad debugging code.  Closes #68