Fix double free on current_line. RM #2418
Merge pull request #492 from baptr/issue-2418

Fix double free on current_line. RM #2418