diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-05-19 23:42:54 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-05-19 23:42:54 +0000 |
commit | 39bf5b987e8ab53a74adec5a15b30f4eda85b357 (patch) | |
tree | ef7b1bb0b32523b3ed6ada915575b968998047b6 /sys/src/cmd/ki | |
parent | a9cdbcd5016319901ea112096f042ac9017cdce4 (diff) |
devip: don't leak temporary buffers on error
when reading the status files from a conversation, ipread()
allocates a temporary buffer and calls the protocols
generator to fill the buffer and the calls
readstr() to handle the read request.
if the generator or readstr() erors, we must free the
temporary buffer.
also, allocate a more reasonable size for the "local"
and "remote" strings. allocating and zeroing 32K big
buffers for them is excessive.
Diffstat (limited to 'sys/src/cmd/ki')
0 files changed, 0 insertions, 0 deletions