Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
c2922d4e
Commit
c2922d4e
authored
Jul 11, 2011
by
vladlosev
Browse files
Fixes a resource leak in gtest-port_test (by Haruka Iwao).
parent
386da203
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
test/gtest-port_test.cc
test/gtest-port_test.cc
+1
-0
No files found.
test/gtest-port_test.cc
View file @
c2922d4e
...
@@ -1037,6 +1037,7 @@ class AtomicCounterWithMutex {
...
@@ -1037,6 +1037,7 @@ class AtomicCounterWithMutex {
SleepMilliseconds
(
random_
.
Generate
(
30
));
SleepMilliseconds
(
random_
.
Generate
(
30
));
GTEST_CHECK_POSIX_SUCCESS_
(
pthread_mutex_unlock
(
&
memory_barrier_mutex
));
GTEST_CHECK_POSIX_SUCCESS_
(
pthread_mutex_unlock
(
&
memory_barrier_mutex
));
GTEST_CHECK_POSIX_SUCCESS_
(
pthread_mutex_destroy
(
&
memory_barrier_mutex
));
}
}
value_
=
temp
+
1
;
value_
=
temp
+
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment