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

Fix: fix a memory leak bug in function sdr_open_soapy. #3202

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

mugitya03
Copy link
Contributor

dev->dev_info points to a memory object allocated at line 927.

When r!=0, the field dev_info is not freed before freeing pointer dev. Thus we add a free operation.

`dev->dev_info` points to a memory object allocated at line 927.

When `r!=0`, the field `dev_info` is not freed before freeing pointer `dev`. Thus we add a free operation.
@zuckschwerdt
Copy link
Collaborator

Thanks! The dev_info should indeed be free'd on any error.

@zuckschwerdt zuckschwerdt merged commit 557a436 into merbanan:master Feb 17, 2025
9 checks passed
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.

2 participants