Add OPENSSL_free at the end of CRYPTO_destroy_dynlockid.
authorBodo Möller <bodo@openssl.org>
Mon, 19 Jun 2000 13:53:15 +0000 (13:53 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 19 Jun 2000 13:53:15 +0000 (13:53 +0000)
crypto/cryptlib.c

index 4bad40c2dfe3423c415c5b15213bb1ab2e13ac8c..f5e44311f48deaf725e2910aa6dcefdd057508c9 100644 (file)
@@ -246,7 +246,10 @@ void CRYPTO_destroy_dynlockid(int i)
        CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
 
        if (pointer)
+               {
                dynlock_destroy_callback(pointer->data,__FILE__,__LINE__);
+               OPENSSL_free(pointer);
+               }
        }
 
 struct CRYPTO_dynlock_value *CRYPTO_get_dynlock_value(int i)