1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

userauth: fix two small memory leaks.

Happened to notice these while I was testing the last few commits.

(cherry picked from commit 84fa07cfeb)
This commit is contained in:
Simon Tatham 2020-02-02 18:53:15 +00:00
parent 92c1f31569
commit 6864bcddbb

View File

@ -782,6 +782,7 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
ppl_printf("Pageant failed to "
"provide a signature\r\n");
s->suppress_wait_for_response_packet = true;
ssh_free_pktout(s->pktout);
}
}
}
@ -1334,6 +1335,8 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
}
if (sb->len)
s->cur_prompt->instruction = strbuf_to_str(sb);
else
strbuf_free(sb);
/*
* Our prompts_t is fully constructed now. Get the