Fix OAuth2 error reporting.
Fix double free() in ssl_nss.c. #1038