curl/lib/vssh
Viktor Szakats 30739b4d36
libssh2: fix memory leak in SSH_SFTP_REALPATH state
Seen in MSVC libssh2 CI job:
```
test 0615...[SFTP put remote failure]
test 0616...[SFTP retrieval of empty file]
test 0618...[SFTP retrieval of two files]
test 0620...[SFTP retrieval of missing file followed by good file]
test 0622...[SFTP put failure]
test 0637...[SFTP retrieval with invalid X- range]
test 0640...[SFTP --head retrieval]
  ** MEMORY FAILURE
  Leak detected: memory still allocated: 22 bytes
  At 2ae5b8a7ab8, there's 22 bytes.
   allocated by D:/a/curl/curl/lib/vssh/libssh2.c:2006
```
https://github.com/curl/curl/actions/runs/13752652590/job/38455575042?pr=16636#step:14:3907
https://github.com/curl/curl/actions/runs/13752879003/job/38456075461
https://github.com/curl/curl/actions/runs/13753706458/job/38457888479

Bug: https://github.com/curl/curl/pull/16636#issuecomment-2709086838
Co-authored-by: Daniel Stenberg

Closes #16639
2025-03-10 01:13:05 +01:00
..
.checksrc checksrc: use 'banfunc' proper in more places 2025-01-13 09:10:58 +01:00
curl_path.c libssh2: put the readdir buffers into struct 2024-10-16 11:55:47 +02:00
curl_path.h libssh2: put the readdir buffers into struct 2024-10-16 11:55:47 +02:00
libssh.c ssh: consider sftp quote commands case sensitive 2025-02-19 07:52:11 +01:00
libssh2.c libssh2: fix memory leak in SSH_SFTP_REALPATH state 2025-03-10 01:13:05 +01:00
ssh.h libssh2: drop obsolete macros and version checks 2025-02-12 09:04:13 +01:00
wolfssh.c tidy-up: use CURL_ARRAYSIZE() 2025-02-19 00:59:45 +01:00