Free lines directly in sql mode, as there is no undo command.

This is a small memory leak.