Fix http auth related leaks.

Change-Id: I82f3f3519dfdaa0fac2da580b60810985e673bde