diff options
author | 2018-09-08 13:49:26 +0000 | |
---|---|---|
committer | 2018-09-08 13:49:26 +0000 | |
commit | 5be2224443c8ce3238e615f17221d56ec060662d (patch) | |
tree | 4665c897bed3dca5b2978c718d72d9793d016717 /lib/libcrypto/objects/obj_dat.c | |
parent | Check for malloc() failures. (diff) | |
download | wireguard-openbsd-5be2224443c8ce3238e615f17221d56ec060662d.tar.xz wireguard-openbsd-5be2224443c8ce3238e615f17221d56ec060662d.zip |
ASN1_OBJECTs should be freed with ASN1_OBJECT_free(3), not with free(3).
ok inoguchi, jsing
Diffstat (limited to 'lib/libcrypto/objects/obj_dat.c')
-rw-r--r-- | lib/libcrypto/objects/obj_dat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index cb6de90b4eb..6c50aa980aa 100644 --- a/lib/libcrypto/objects/obj_dat.c +++ b/lib/libcrypto/objects/obj_dat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_dat.c,v 1.40 2018/09/08 10:31:24 tb Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.41 2018/09/08 13:49:26 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -333,7 +333,7 @@ OBJ_add_object(const ASN1_OBJECT *obj) err: for (i = ADDED_DATA; i <= ADDED_NID; i++) free(ao[i]); - free(o); + ASN1_OBJECT_free(o); return (NID_undef); } |