From: Dr. Stephen Henson Date: Fri, 5 Mar 2004 23:47:39 +0000 (+0000) Subject: Cleanup ASN1 OID module when it exits. X-Git-Tag: OpenSSL_0_9_7d~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=931a0319162bd7de939a0e3b7905b4ff4e9d0454;p=oweals%2Fopenssl.git Cleanup ASN1 OID module when it exits. --- 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); }