Merge remote-tracking branch 'origin/fastpath'

* origin/fastpath:
  Fix misc. issues reported by Coverity.
Fix a potential memory leak I just introduced.

Though again, this code path isn't expected to be taken normally.