Merge pull request #3275 from git-up/http_fix

http: fixed leak when asking for credentials again
This commit is contained in:
Edward Thomson 2015-06-30 13:39:07 -05:00
commit cb58fb24f5

View File

@ -337,6 +337,10 @@ static int on_headers_complete(http_parser *parser)
no_callback = 1;
} else {
if (allowed_auth_types) {
if (t->cred) {
t->cred->free(t->cred);
t->cred = NULL;
}
error = t->owner->cred_acquire_cb(&t->cred,
t->owner->url,