mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +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:
parent
94a756f3a9
commit
84fa07cfeb
@ -780,6 +780,7 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
|
|||||||
ppl_printf("Pageant failed to "
|
ppl_printf("Pageant failed to "
|
||||||
"provide a signature\r\n");
|
"provide a signature\r\n");
|
||||||
s->suppress_wait_for_response_packet = true;
|
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)
|
if (sb->len)
|
||||||
s->cur_prompt->instruction = strbuf_to_str(sb);
|
s->cur_prompt->instruction = strbuf_to_str(sb);
|
||||||
|
else
|
||||||
|
strbuf_free(sb);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Our prompts_t is fully constructed now. Get the
|
* Our prompts_t is fully constructed now. Get the
|
||||||
|
Loading…
Reference in New Issue
Block a user