Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
afb-hreq: Fix a leak on websocket upgrade
[src/app-framework-binder.git]
/
src
/
afb-hreq.c
diff --git
a/src/afb-hreq.c
b/src/afb-hreq.c
index
9c63091
..
dc02e6f
100644
(file)
--- a/
src/afb-hreq.c
+++ b/
src/afb-hreq.c
@@
-330,6
+330,8
@@
void afb_hreq_addref(struct afb_hreq *hreq)
void afb_hreq_unref(struct afb_hreq *hreq)
{
+ if (hreq->replied)
+ hreq->xreq.replied = 1;
afb_xreq_unref(&hreq->xreq);
}