Fixes a memleak as well as a bug in digest authentication. Signed-off-by: Daniel Golle <daniel@makrotopia.org>