Fix patchspec_t memory leak. Closes #2899.
Fixed pathspec_t::operator=() semantics when assigning to itself.
Copy&Paste errors
Revert "Copy&Paste errors"

This reverts commit a1b7b8485975429bad2c4ddc7e79883367c342fe.
Revert "Fixed pathspec_t::operator=() semantics when assigning to itself."

This reverts commit bcb4ee0858e4d07493a9284ffbc83def8038327f.
Delay deletion of pathspec_t fields in pathspec_t::operator=
... and reverted one earlier change which isn't necessary anymore.
Merge branch 'daniel_2899' into v1.13.x