Plug another potential mem leak in process_put. It allocates abs_dst
authordtucker <dtucker@openbsd.org>
Wed, 29 Mar 2023 00:59:08 +0000 (00:59 +0000)
committerdtucker <dtucker@openbsd.org>
Wed, 29 Mar 2023 00:59:08 +0000 (00:59 +0000)
commit70c668cf9a36b7e9b14387b3554a4b95abd4f60b
tree02d0b33b67fb9a4a082e80ce3e22eddc310232f1
parent924c884b08edc18934462f9f1e8f39d281dfce5c
Plug another potential mem leak in process_put.  It allocates abs_dst
inside a loop but only frees it on exit, so free inside the loop if
necessary.  Coverity CID 291837, ok djm@
usr.bin/ssh/sftp.c