crypto: fix memory leak in Connection::New
authorFedor Indutny <fedor@indutny.com>
Sat, 23 Aug 2014 19:22:23 +0000 (23:22 +0400)
committerFedor Indutny <fedor@indutny.com>
Sat, 23 Aug 2014 19:22:23 +0000 (23:22 +0400)
commit8a7d7f8b2b40f670d2fceb14d7d16cda1bea6bcf
tree6c90c2cd25cfddf694b286713f45caee0b8765dd
parentc0f30f6058f27694dd4faaf4040c804769999ac1
crypto: fix memory leak in Connection::New

Do not create `SSL` instance twice, `SSL_new` is called from `SSLBase`
constructor anyway.

Reviewed-By: Fedor Indutny <fedor@indutny.com>
src/node_crypto.cc