diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-03-05 23:47:56 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-03-05 23:47:56 +0000 |
commit | 5fa5eb71a4eb1e015228327eeae415e129ef2faf (patch) | |
tree | 708cae842291e054f49a4d0013b23741f3caa839 /crypto/asn1 | |
parent | 3f39976da3124dde862eada02af948b1d8567933 (diff) |
Cleanup ASN1 OID module when it exits.
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/asn_moid.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/asn1/asn_moid.c b/crypto/asn1/asn_moid.c index be20db4bad..edb44c988f 100644 --- a/crypto/asn1/asn_moid.c +++ b/crypto/asn1/asn_moid.c @@ -87,9 +87,14 @@ static int oid_module_init(CONF_IMODULE *md, const CONF *cnf) } } return 1; -} + } + +static void oid_module_finish(CONF_IMODULE *md) + { + OBJ_cleanup(); + } void ASN1_add_oid_module(void) { - CONF_module_add("oid_section", oid_module_init, 0); + CONF_module_add("oid_section", oid_module_init, oid_module_finish); } |