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:
parent
92c1f31569
commit
6864bcddbb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user