Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
001a3f78
authored
Feb 11, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base_c: fixed memory leak in ThreadSpecificStorageTest
parent
334a11e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
base_c/test/thread_specific_storage_test.cc
+5
-1
No files found.
base_c/test/thread_specific_storage_test.cc
View file @
001a3f78
...
...
@@ -50,7 +50,11 @@ void ThreadSpecificStorageTest::Test() {
size_t
rank
=
partest
::
TestSuite
::
GetCurrentThreadID
();
void
*
value
=
embb_tss_get
(
&
tss_
);
if
(
value
==
NULL
)
{
int
status
=
embb_tss_set
(
&
tss_
,
new
size_t
(
rank
));
size_t
*
prank
=
new
size_t
(
rank
);
int
status
=
embb_tss_set
(
&
tss_
,
prank
);
if
(
EMBB_SUCCESS
!=
status
)
{
delete
prank
;
}
PT_EXPECT_EQ
(
status
,
EMBB_SUCCESS
);
}
else
{
size_t
stored_rank
=
*
static_cast
<
size_t
*>
(
value
);
...
...
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