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:
6280cba
)
libubus: fix a small memleak in ubus_register_event_handler()
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 4 Sep 2014 18:01:13 +0000
(20:01 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 4 Sep 2014 18:01:13 +0000
(20:01 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus.c
patch
|
blob
|
history
diff --git
a/libubus.c
b/libubus.c
index be4e6acdd797480225631b45d70e27909bbe0bcb..e42f14f9cdf026a3dea36beeb45d60557cb717b9 100644
(file)
--- a/
libubus.c
+++ b/
libubus.c
@@
-243,8
+243,11
@@
int ubus_register_event_handler(struct ubus_context *ctx,
if (pattern)
blobmsg_add_string(&b2, "pattern", pattern);
- ret
urn
ubus_invoke(ctx, UBUS_SYSTEM_OBJECT_EVENT, "register", b2.head,
+ ret
=
ubus_invoke(ctx, UBUS_SYSTEM_OBJECT_EVENT, "register", b2.head,
NULL, NULL, 0);
+ blob_buf_free(&b2);
+
+ return ret;
}
int ubus_send_event(struct ubus_context *ctx, const char *id,