Commit dc39d232 by Ungureanu Marius Committed by Aki Koskinen

Plug possible leak in the openssl locks

parent 3a2c60e7
......@@ -64,7 +64,13 @@ void openssl_locking_function(int mode, int n, const char *file, int line)
static void shutdown_ssl(void)
{
int num_locks, i;
num_locks = CRYPTO_num_locks();
CRYPTO_set_locking_callback(NULL);
for (i = 0; i < num_locks; ++i)
git_mutex_free(openssl_locks);
git__free(openssl_locks);
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment