Subject: [libssh2] #298: Memory leak

[libssh2] #298: Memory leak

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Wed, 01 Apr 2015 09:48:58 -0000

#298: Memory leak
--------------------+--------------------
 Reporter: double | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone: 1.4.3
Component: crypto | Version: 1.5.0
 Keywords: | Blocked By:
   Blocks: |
--------------------+--------------------
 First: Thanks a lot for the new release.
 There is a memory leak with openssl: You call
 "OpenSSL_add_all_algorithms()" on init, but you don't free the memory on
 exit:
 https://www.openssl.org/docs/crypto/OpenSSL_add_all_algorithms.html

 Replace:

 #define libssh2_crypto_init() OpenSSL_add_all_algorithms()
 #define libssh2_crypto_exit()

 With:

 #define libssh2_crypto_init() OpenSSL_add_all_algorithms()
 #define libssh2_crypto_exit() EVP_cleanup();

 Thanks a lot!

-- 
Ticket URL: <https://trac.libssh2.org/ticket/298>
libssh2 <https://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2015-04-01