libubus: fix a small memleak in ubus_register_event_handler()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
6280cbaf09
commit
73cbb94b48
1 changed files with 4 additions and 1 deletions
|
@ -243,8 +243,11 @@ int ubus_register_event_handler(struct ubus_context *ctx,
|
|||
if (pattern)
|
||||
blobmsg_add_string(&b2, "pattern", pattern);
|
||||
|
||||
return 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,
|
||||
|
|
Loading…
Reference in a new issue