Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8aa7073

Browse files
committed
Merge branch 'openssl-lock-free'
2 parents ce8822c + d6ecc31 commit 8aa7073

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/global.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ void openssl_locking_function(int mode, int n, const char *file, int line)
6767

6868
static void shutdown_ssl_locking(void)
6969
{
70+
int num_locks, i;
71+
72+
num_locks = CRYPTO_num_locks();
7073
CRYPTO_set_locking_callback(NULL);
74+
75+
for (i = 0; i < num_locks; ++i)
76+
git_mutex_free(openssl_locks);
7177
git__free(openssl_locks);
7278
}
7379
#endif

0 commit comments

Comments
 (0)