[ruby-cvs:52741] nobu:r45595 (trunk): ossl_pkey.c: fix memory leak

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Apr 16 09:51:19 JST 2014


nobu	2014-04-16 09:51:18 +0900 (Wed, 16 Apr 2014)

  New Revision: 45595

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45595

  Log:
    ossl_pkey.c: fix memory leak
    
    * ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal()
      finalizes only a copy of the digest context, the context must be
      cleaned up after initialization by EVP_MD_CTX_cleanup() or a
      memory leak will occur.  [ruby-core:62038] [Bug #9743]

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_pkey.c
    trunk/test/openssl/test_pkey_rsa.rb


More information about the ruby-cvs mailing list