fix Value's memory leak
Merge pull request #6150 from mgcL/Value-memory-leak

A potential memory leak in value's default constructor.