Plug more mem leaks in sftp by making make_absolute_pwd_glob work in
authordtucker <dtucker@openbsd.org>
Tue, 28 Mar 2023 07:44:32 +0000 (07:44 +0000)
committerdtucker <dtucker@openbsd.org>
Tue, 28 Mar 2023 07:44:32 +0000 (07:44 +0000)
commit03eaa8d0d0cf5109139007eae2fdc0e59aa6fb3f
treea9fb9aeeb0d5a48b7094cc54cf514b431df6fdae
parentf96d262ec5b58a669d5eb522d15bd27181115328
Plug more mem leaks in sftp by making make_absolute_pwd_glob work in
the same way as make_absolute: you pass it a dynamically allocated string
and it either returns it, or frees it and allocates a new one.
Patch from emaste at freebsd.org and https://reviews.freebsd.org/D37253
ok djm@
usr.bin/ssh/sftp-client.c
usr.bin/ssh/sftp.c