Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
abt-io
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
sds
abt-io
Commits
8d78522d
Commit
8d78522d
authored
Sep 28, 2020
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix small memory leak
parent
c02a44fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/abt-io.c
src/abt-io.c
+4
-0
No files found.
src/abt-io.c
View file @
8d78522d
...
...
@@ -33,6 +33,7 @@ struct abt_io_instance
{
ABT_pool
progress_pool
;
ABT_xstream
*
progress_xstreams
;
ABT_sched
*
progress_scheds
;
int
num_xstreams
;
json_t
*
component_cfg
;
};
...
...
@@ -141,6 +142,7 @@ abt_io_instance_id abt_io_init_json(const char* json_cfg_string)
aid
->
progress_pool
=
pool
;
aid
->
progress_xstreams
=
progress_xstreams
;
aid
->
progress_scheds
=
progress_scheds
;
return
aid
;
}
...
...
@@ -171,6 +173,7 @@ abt_io_instance_id abt_io_init_pool(ABT_pool progress_pool)
aid
->
progress_pool
=
progress_pool
;
aid
->
progress_xstreams
=
NULL
;
aid
->
progress_scheds
=
NULL
;
aid
->
num_xstreams
=
0
;
return
aid
;
...
...
@@ -186,6 +189,7 @@ void abt_io_finalize(abt_io_instance_id aid)
ABT_xstream_free
(
&
aid
->
progress_xstreams
[
i
]);
}
free
(
aid
->
progress_xstreams
);
free
(
aid
->
progress_scheds
);
// pool gets implicitly freed
}
...
...
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