diff options
author | Matt Caswell <matt@openssl.org> | 2018-03-12 15:24:29 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-03-12 19:49:44 +0000 |
commit | c130c0fe1d386fcc05d5b7accf062fe72b7272e8 (patch) | |
tree | e564de1629196dbd974cdf2098379e1076e9fc7e /crypto | |
parent | 61cd0c946b34b6ae690882b334d77093e063d47c (diff) |
Free the correct type in OBJ_add_object()
We should be using ASN1_OBJECT_free() not OPENSSL_free().
Fixes #5568
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5597)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/objects/obj_dat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c index 06a3fb3406..f4412f661a 100644 --- a/crypto/objects/obj_dat.c +++ b/crypto/objects/obj_dat.c @@ -213,7 +213,7 @@ int OBJ_add_object(const ASN1_OBJECT *obj) err: for (i = ADDED_DATA; i <= ADDED_NID; i++) OPENSSL_free(ao[i]); - OPENSSL_free(o); + ASN1_OBJECT_free(o); return NID_undef; } |