Fix minor memory leak
Merge pull request #2 from rgeissert/history-line-leak

Fix minor memory leak