]> git.ipfire.org Git - thirdparty/curl.git/commit
libssh2: remove use of 'initialised' for cleanup
authorDaniel Stenberg <daniel@haxx.se>
Mon, 7 Jul 2025 06:23:15 +0000 (08:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 7 Jul 2025 10:01:22 +0000 (12:01 +0200)
commitf048546c8787f2f415d7072e32a6eef03282342b
treeccf682d74182f9db5ffd4e630b2dd9a784c461d9
parent22bd59fb7fa8de97f25c2557c9135b13a919adf4
libssh2: remove use of 'initialised' for cleanup

It could previously cause a memory-leak when the cleanup was not
performed because it was not set.

Reported-by: albrechtd on github
Fixes #17819
Closes #17837
lib/vssh/libssh2.c
lib/vssh/ssh.h