Skip to content

Fix FP memleak with outparam allocation (f'up to #12186)#5677

Merged
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_outparam
Nov 19, 2023
Merged

Fix FP memleak with outparam allocation (f'up to #12186)#5677
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_outparam

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

I wonder if it is worth trying to get this right. We also have FPs when the return value is assigned to a variable, and that seems much harder to fix.

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Nov 19, 2023

I wonder if it is worth trying to get this right. We also have FPs when the return value is assigned to a variable, and that seems much harder to fix.

I don't understand why it wouldn't be worth it. Does it cause technical problems? Or do you mean it's too much work?

Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

I wonder if it is worth trying to get this right. We also have FPs when the return value is assigned to a variable, and that seems much harder to fix.

I don't understand why it wouldn't be worth it. Does it cause technical problems? Or do you mean it's too much work?

The latter. There can e.g. be many variations of how a return value is checked.

@chrchr-github chrchr-github merged commit cd21918 into cppcheck-opensource:main Nov 19, 2023
@chrchr-github chrchr-github deleted the chr_outparam branch November 19, 2023 19:00
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