Skip to content

Commit 8757774

Browse files
author
vladlosev
committed
Fixes a resource leak in gtest-port_test (by Haruka Iwao).
git-svn-id: http://googletest.googlecode.com/svn/trunk@587 861a406c-534a-0410-8894-cb66d6ee9925
1 parent 105b143 commit 8757774

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/gtest-port_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,7 @@ class AtomicCounterWithMutex {
10371037
SleepMilliseconds(random_.Generate(30));
10381038

10391039
GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_unlock(&memory_barrier_mutex));
1040+
GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_destroy(&memory_barrier_mutex));
10401041
}
10411042
value_ = temp + 1;
10421043
}

0 commit comments

Comments
 (0)