Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/bootchooser: fix pair of memory leaks #868

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

zyga
Copy link
Contributor

@zyga zyga commented Feb 25, 2022

This is a drive-by fix, while trying to understand the exact
implementation of bootchooser_order_primay I've noticed that the list is
never freed. Jan Luebbe further noticed similar situation in
barebox_set_primary

Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@huawei.com

@codecov
Copy link

codecov bot commented Feb 25, 2022

Codecov Report

Merging #868 (f64441a) into master (ecb8864) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #868   +/-   ##
=======================================
  Coverage   69.58%   69.58%           
=======================================
  Files          30       30           
  Lines       10070    10072    +2     
=======================================
+ Hits         7007     7009    +2     
  Misses       3063     3063           
Impacted Files Coverage Δ
src/bootchooser.c 79.68% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ecb8864...f64441a. Read the comment docs.

While trying to understand the exact implementation of
bootchooser_order_primary, I've noticed that the list is never freed. Jan Lübbe
further noticed similar situation in barebox_set_primary.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
@jluebbe jluebbe changed the title src/bootchooser: fix memory pair of memory leaks src/bootchooser: fix pair of memory leaks Feb 25, 2022
@jluebbe jluebbe added the fixed label Feb 25, 2022
@jluebbe jluebbe added this to the Release v1.7 milestone Feb 25, 2022
@jluebbe jluebbe merged commit 2bdf1f1 into rauc:master Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants