Epilogue: I still had a leak (a lot smaller, though). Valgrind said it was libgcrypt's fault. Using openssl instead finally solved the problem.
2012/5/21 Daniel Stenberg <dan...@haxx.se>: > We should really go through the non-blocking examples to make sure they do > the right thing too as users are likely to copy code from them... Specially when they are very new to the library (like me). _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel