Don't leak memory on failure to create a mem BIO
authorMatt Caswell <matt@openssl.org>
Wed, 27 Apr 2016 11:52:29 +0000 (12:52 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 12:13:09 +0000 (13:13 +0100)
commitb0b6ba2d11ce4188e32be50c9e87672c67183616
treeb8b7f74b568e9355acce4bb4aa5932015cda0caa
parentdf0f2759220f825efe1a77eae9e658fe37cc89c3
Don't leak memory on failure to create a mem BIO

During construction of a mem BIO we allocate some resources. If this
allocation fails we can end up leaking everything we have allocated so
far.

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/bio/bss_mem.c