Release strings at end of String.GetLine and String.Append unit tests

I forgot to include a release statement, so these tests would leak
memory and fail valgrind. I've just corrected this.