mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
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)
This commit is contained in:
parent
61cd0c946b
commit
c130c0fe1d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user