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 4bad40c..f5e4431 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)