crypto: fix leak in SafeX509ExtPrint
authorFedor Indutny <fedor@indutny.com>
Sat, 7 Mar 2015 03:51:03 +0000 (22:51 -0500)
committerFedor Indutny <fedor@indutny.com>
Sat, 7 Mar 2015 12:58:31 +0000 (07:58 -0500)
commit3b57819b5887870b5a34c86b3ac9889dd92b9b0f
tree70ed293be30878d5945c8ad4737e6fa0093054c0
parent9f7c9811e2978a1c95392f5a175f12853abda5d6
crypto: fix leak in SafeX509ExtPrint

`ASN1_item_d2i`'s return value must be freed by the owner.

Fix: https://github.com/iojs/io.js/issues/1075
PR-URL: https://github.com/iojs/io.js/pull/1087
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
src/node_crypto.cc