http_digest: Fixed memory leaks from commit 6f8d8131b1