diff options
author | tb <> | 2018-09-08 13:49:26 +0000 |
---|---|---|
committer | tb <> | 2018-09-08 13:49:26 +0000 |
commit | 6753a9e85c3ca1350efc84ae555a7ac88810b2a3 (patch) | |
tree | c1c02498f7cd6bd91bf215690a408b55e8c13ea8 /src/lib/libcrypto/objects/obj_dat.c | |
parent | 8785859e82ea35a0338905caea0c13cb8e12a80b (diff) | |
download | openbsd-6753a9e85c3ca1350efc84ae555a7ac88810b2a3.tar.gz openbsd-6753a9e85c3ca1350efc84ae555a7ac88810b2a3.tar.bz2 openbsd-6753a9e85c3ca1350efc84ae555a7ac88810b2a3.zip |
ASN1_OBJECTs should be freed with ASN1_OBJECT_free(3), not with free(3).
ok inoguchi, jsing
Diffstat (limited to 'src/lib/libcrypto/objects/obj_dat.c')
-rw-r--r-- | src/lib/libcrypto/objects/obj_dat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c index cb6de90b4e..6c50aa980a 100644 --- a/src/lib/libcrypto/objects/obj_dat.c +++ b/src/lib/libcrypto/objects/obj_dat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: obj_dat.c,v 1.40 2018/09/08 10:31:24 tb Exp $ */ | 1 | /* $OpenBSD: obj_dat.c,v 1.41 2018/09/08 13:49:26 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -333,7 +333,7 @@ OBJ_add_object(const ASN1_OBJECT *obj) | |||
333 | err: | 333 | err: |
334 | for (i = ADDED_DATA; i <= ADDED_NID; i++) | 334 | for (i = ADDED_DATA; i <= ADDED_NID; i++) |
335 | free(ao[i]); | 335 | free(ao[i]); |
336 | free(o); | 336 | ASN1_OBJECT_free(o); |
337 | return (NID_undef); | 337 | return (NID_undef); |
338 | } | 338 | } |
339 | 339 | ||