Skip to content

ubus: fix reply leak in deferred data callback#415

Open
cmonroe wants to merge 1 commit into
jow-:masterfrom
cmonroe:ubus-leak
Open

ubus: fix reply leak in deferred data callback#415
cmonroe wants to merge 1 commit into
jow-:masterfrom
cmonroe:ubus-leak

Conversation

@cmonroe

@cmonroe cmonroe commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

blob_array_to_ucv() returns the reply with a reference count of 1 owned by uc_ubus_call_data_user_cb(). Pushing it onto the VM stack with an extra ucv_get() leaves that owning reference unreleased after the callback returns and leaks the entire reply object on every data callback invocation.

blob_array_to_ucv() returns the reply with a reference count of 1
owned by uc_ubus_call_data_user_cb(). Pushing it onto the VM stack
with an extra ucv_get() leaves that owning reference unreleased
after the callback returns and leaks the entire reply object on
every data callback invocation.

Signed-off-by: Chad Monroe <chad@monroe.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant