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:14:48 +0000 (17:14 -0500)
commit4483e23444fa18034344874ffbe67919207e9e47
tree3d77d41ba474ecdfabe77d2b165a4f4353156e7d
parent7e999d5101d7f59ecdb4ddd12ff910ff92c6ac3a
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)
crypto/asn1/a_time.c