Commit c2922d4e authored by vladlosev's avatar vladlosev
Browse files

Fixes a resource leak in gtest-port_test (by Haruka Iwao).

parent 386da203
......@@ -1037,6 +1037,7 @@ class AtomicCounterWithMutex {
SleepMilliseconds(random_.Generate(30));
GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_unlock(&memory_barrier_mutex));
GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_destroy(&memory_barrier_mutex));
}
value_ = temp + 1;
}
......
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