summaryrefslogtreecommitdiff
path: root/sys/src/libflate
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2023-05-19 23:42:54 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2023-05-19 23:42:54 +0000
commit39bf5b987e8ab53a74adec5a15b30f4eda85b357 (patch)
treeef7b1bb0b32523b3ed6ada915575b968998047b6 /sys/src/libflate
parenta9cdbcd5016319901ea112096f042ac9017cdce4 (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/libflate')
0 files changed, 0 insertions, 0 deletions