hurd: writev: Add back cleanup handler
commitc6957bddb939a1a602824b9fa731fc45fb4a6d8c
authorJoe Simmons-Talbott <josimmon@redhat.com>
Mon, 19 Jun 2023 14:38:42 +0000 (19 10:38 -0400)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 20 Jun 2023 16:37:04 +0000 (20 18:37 +0200)
tree58aff3dc9d057ff3e34c011777b62d6865d6ac70
parent4290aed05135ae4c0272006442d147f2155e70d7
hurd: writev: Add back cleanup handler

There is a potential memory leak for large writes due to writev being a
"shall occur" cancellation point.  Add back the cleanup handler removed
in cf30aa43a5917f441c9438aaee201c53c8e1d76b.

Checked on i686-gnu and x86_64-linux-gnu.
Message-Id: <20230619143842.2901522-1-josimmon@redhat.com>
sysdeps/posix/writev.c