Fix memory leak on realloc error.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 14 Sep 2016 22:42:55 +0000 (23:42 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 15 Sep 2016 11:49:00 +0000 (12:49 +0100)
commitd69247598991c61dfb68d4fe3b08346b02644812
treec5a3c9fd06d07e7151641562a11e45fae6a7ec4b
parentea060e026dd29ea0eaf66ad8686f966c8c81eb7f
Fix memory leak on realloc error.

Backport leak fix from master branch.

Thanks to Shi Lei (Gear Team, Qihoo 360 Inc.) for reporting this bug.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/ssl_rsa.c