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:15:01 +0000 (17:15 -0500)
commitca0a7a9a4ebe9bb0f646930262f43372fa73254c
treebd43a57a98b659a357fd24985aa1d9cf078ae7cf
parent4c3376ec2747ebd69b3da68d2d18b155fac5c03f
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