http_digest: Fixed some memory leaks introduced in commit 6f8d8131b1

Fixed a couple of memory leaks as a result of moving code that used to
populate allocuserpwd and relied on it's clean up.