Don't leak on an OPENSSL_realloc() failure
authorMatt Caswell <matt@openssl.org>
Wed, 21 Sep 2016 14:49:28 +0000 (15:49 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 21 Sep 2016 19:27:15 +0000 (20:27 +0100)
commit41bff723c6784cc846054a4fd4add6dbec8c2c64
tree4b316888becbef764806d22d4dd70e96a73a048a
parentaf58be768ebb690f78530f796e92b8ae5c9a4401
Don't leak on an OPENSSL_realloc() failure

If OPENSSL_sk_insert() calls OPENSSL_realloc() and it fails, it was leaking
the originally allocated memory.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/stack/stack.c