couple of memory fixes from Mark Vakoc reported by Purify on Windows.

* threads.c uri.c: couple of memory fixes from Mark Vakoc reported
  by Purify on Windows.
Daniel
4 files changed