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.
This commit is contained in:
Simon Tatham 2020-02-02 18:53:15 +00:00
parent 94a756f3a9
commit 84fa07cfeb

View File

@ -780,6 +780,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);
}
}
}
@ -1332,6 +1333,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