String returned by value must be stored
Merge pull request #2877 from wmtan/FixForValgrindInvalidRead

Valgrind fix -- String returned by value must be stored