fixed typo causing non free of mutex_buf structure in pqissl.cc

This commit is contained in:
csoler 2015-10-07 18:59:58 -04:00
parent 3cbf0f6657
commit 39672b2df6

View File

@ -198,7 +198,7 @@ void tls_cleanup()
CRYPTO_set_locking_callback(NULL);
CRYPTO_set_id_callback(NULL);
if (mutex_buf == NULL) {
if (mutex_buf != NULL) {
for (int i = 0; i < CRYPTO_num_locks(); i++) {
pthread_mutex_destroy(&mutex_buf[i]);
}