Fix potential memory leak in ASN1_TIME_to_generalizedtime()
authorTodd Short <tshort@akamai.com>
Fri, 17 Feb 2017 16:36:13 +0000 (11:36 -0500)
committerRich Salz <rsalz@openssl.org>
Thu, 23 Feb 2017 22:17:11 +0000 (17:17 -0500)
commitcdfb7809b6a365a0a7874afd8f8778c5c572f267
tree43feafbf7e5d3e04d1665e9419f2fc0f3c556ac4
parent0b8c12f57a63b895b9192846f79ce73db0153c02
Fix potential memory leak in ASN1_TIME_to_generalizedtime()

If ret is allocated, it may be leaked on error.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2666)
(cherry picked from commit 4483e23444fa18034344874ffbe67919207e9e47)
crypto/asn1/a_time.c