Fixed memory leak reported by Dan Price in Bug #694713