Skip to content

usteer: fix memory leak / bad condition#15

Open
mu-b wants to merge 2 commits intoopenwrt:masterfrom
mu-b:master
Open

usteer: fix memory leak / bad condition#15
mu-b wants to merge 2 commits intoopenwrt:masterfrom
mu-b:master

Conversation

@mu-b
Copy link
Copy Markdown

@mu-b mu-b commented Mar 31, 2026

Fixed a potential memory leak in usteer_handle_bss_tm_query by freeing the query object before returning when sta_addr is invalid. Corrected the load comparison logic in is_better_candidate to ensure that the function properly compares the load between nodes, using the correct argument order for has_better_load otherwise its always false.

mu-b added 2 commits March 31, 2026 11:34
fix tautological contradiction, 'A^!A'

Signed-off-by: Neil Kettle <neil@digit-labs.org>
Free the query memory if sta_addr is NULL before returning.

Signed-off-by: Neil Kettle <neil@digit-labs.org>
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