Allow BatchWrite to destroy its input, reducing copying
Make CScript::clear() release its memory
Merge pull request #4683

fff7455 Make CScript::clear() release its memory (Pieter Wuille)
b0875eb Allow BatchWrite to destroy its input, reducing copying (Pieter Wuille)