diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c index 06a3fb3406161d8226f32fdf2220000426349b61..f4412f661aa41f878306cc08443e5a4c40fb9a10 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; }