projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ae1159
)
fix message refcounting
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 6 Feb 2011 00:45:21 +0000
(
01:45
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 6 Feb 2011 00:45:21 +0000
(
01:45
+0100)
ubusd.c
patch
|
blob
|
history
diff --git
a/ubusd.c
b/ubusd.c
index bd437a5af80dd50158a1e1d153c5b58966f64881..491659d7903b9bfeca2a24dd743d6c2f0451d952 100644
(file)
--- a/
ubusd.c
+++ b/
ubusd.c
@@
-95,7
+95,7
@@
static void ubus_msg_enqueue(struct ubus_client *cl, struct ubus_msg_buf *ub)
if (cl->tx_queue[cl->txq_tail])
return;
- cl->tx_queue[cl->txq_tail] = ub;
+ cl->tx_queue[cl->txq_tail] = ub
us_msg_ref(ub)
;
cl->txq_tail = (cl->txq_tail + 1) % ARRAY_SIZE(cl->tx_queue);
}