Make sure to complete the cleanup of names.
authorRichard Levitte <levitte@openssl.org>
Fri, 17 Mar 2000 23:49:15 +0000 (23:49 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 17 Mar 2000 23:49:15 +0000 (23:49 +0000)
crypto/evp/names.c

index 3e8f4603285124091032daec2496ac8307a00c3f..620f43feaadebb6945c6cfa6c0ca13d324db3b87 100644 (file)
@@ -114,5 +114,10 @@ void EVP_cleanup(void)
        {
        OBJ_NAME_cleanup(OBJ_NAME_TYPE_CIPHER_METH);
        OBJ_NAME_cleanup(OBJ_NAME_TYPE_MD_METH);
+       /* The above calls will only clean out the contents of the name
+          hash table, but not the hash table itself.  The following line
+          does that part.  -- Richard Levitte */
+       OBJ_NAME_cleanup(-1);
+
        EVP_PBE_cleanup();
        }