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
Xin Wang
codes-dev
Commits
02b81d88
Commit
02b81d88
authored
Jun 26, 2014
by
Jonathan Jenkins
Browse files
forgot to free in rc
parent
256e474f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/resource-lp.c
View file @
02b81d88
...
...
@@ -266,8 +266,8 @@ static void handle_resource_deq(
pending_op
*
p
=
qlist_entry
(
front
,
pending_op
,
ql
);
int
ret
=
resource_get
(
p
->
m
.
req
,
p
->
m
.
tok
,
&
ns
->
r
);
assert
(
ret
!=
2
);
b
->
c0
=
!
ret
;
if
(
!
ret
){
b
->
c0
=
1
;
/* success, dequeue (saving as rc) and send to client */
qlist_del
(
front
);
m
->
i_rc
=
p
->
m
;
...
...
@@ -302,6 +302,7 @@ static void handle_resource_deq_rc(
op
->
m
=
m
->
i_rc
;
qlist_add
(
&
op
->
ql
,
&
ns
->
pending
[
m
->
i
.
tok
]);
resource_response_rc
(
lp
);
assert
(
!
resource_free
(
op
->
m
.
req
,
op
->
m
.
tok
,
&
ns
->
r
));
/* reverse "deq next" op */
codes_local_latency_reverse
(
lp
);
}
...
...
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