Skip to content
Snippets Groups Projects
Commit a2cb58d1 authored by Yalu Zhang's avatar Yalu Zhang Committed by Grzegorz Sluja
Browse files

Fix a memory corruption issue related to ubus_free

In libubus, there is global variable defined as below. ubus_free() calls ubus_shutdown() which frees b->buf.
which can cause memory corrupt when there is more than thread calls ubus_free() at the same time. In order
to avoid this, ubus_free() shall be called only once when the program is about to exit. In other cases,
ubus_free_context() shall be called to only free context specific resources but keep global buffer b->buf
untouched.
parent f5cb2e83
Branches
Tags
1 merge request!54Fix the memory leak in blob_buf
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment