Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
27fc0282
Commit
27fc0282
authored
May 28, 2014
by
Jonathan Jenkins
Browse files
disclaimer about specific memory leak
parent
7ebd166f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/networks/model-net/model-net-sched.c
View file @
27fc0282
...
...
@@ -162,6 +162,10 @@ void fcfs_add (
void
*
sched
,
model_net_sched_rc
*
rc
,
tw_lp
*
lp
){
// NOTE: in optimistic mode, we currently do not have a good way to
// reliably free and re-initialize the q item and the local/remote events
// when processing next/next_rc events. Hence, the memory leaks. Later on
// we'll figure out a better way to handle this.
mn_sched_qitem
*
q
=
malloc
(
sizeof
(
mn_sched_qitem
));
assert
(
q
);
memset
(
q
,
0
,
sizeof
(
*
q
));
...
...
@@ -271,6 +275,10 @@ void rr_add (
void
*
sched
,
model_net_sched_rc
*
rc
,
tw_lp
*
lp
){
// NOTE: in optimistic mode, we currently do not have a good way to
// reliably free and re-initialize the q item and the local/remote events
// when processing next/next_rc events. Hence, the memory leaks. Later on
// we'll figure out a better way to handle this.
mn_sched_qitem
*
q
=
malloc
(
sizeof
(
mn_sched_qitem
));
q
->
req
=
*
req
;
q
->
rem
=
req
->
is_pull
?
PULL_MSG_SIZE
:
req
->
msg_size
;
...
...
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