Skip to content

Commit 56d5b44

Browse files
committed
valgrind: suppress memory leaks in libssh2_session_handshake
On Ubuntu, the combination of libgcrypt and libssh2 is quite old and known to contain memory leaks. We thus have several functions listed in our suppressions file that are known to leak. Due to a recent update of libssh2 or libgcrypt, there now are new memory leaks caused by libssh2_session_handshake and libssh2_init that cause the CI to fail. Add a new suppression to fix the issue.
1 parent 68cfb58 commit 56d5b44

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

script/valgrind.supp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555
fun:curl_global_init
5656
}
5757

58+
{
59+
ignore-libssh2-init
60+
Memcheck:Leak
61+
...
62+
fun:gcry_control
63+
fun:libssh2_init
64+
...
65+
}
66+
5867
{
5968
ignore-libssh2-gcrypt-control-leak
6069
Memcheck:Leak
@@ -103,6 +112,17 @@
103112
obj:*libssh2.so*
104113
}
105114

115+
{
116+
ignore-libssh2-gcrypt-session-handshake
117+
Memcheck:Leak
118+
...
119+
obj:*libgcrypt.so*
120+
obj:*libssh2.so*
121+
obj:*libssh2.so*
122+
fun:libssh2_session_handshake
123+
...
124+
}
125+
106126
{
107127
ignore-noai6ai_cached-double-free
108128
Memcheck:Free

0 commit comments

Comments
 (0)