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

lib/raster: Fix Resource Leak issue in put_title.c #4821

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

ShubhamDesai
Copy link
Contributor

This pull request fixes issue identified by Coverity Scan (CID: 1207660)
used remove() to fix this issue.

@github-actions github-actions bot added raster Related to raster data processing C Related code is in C libraries labels Dec 9, 2024
Copy link
Contributor

@nilason nilason left a comment

Choose a reason for hiding this comment

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

Please see G_tempfile() for handling resources.

@ShubhamDesai
Copy link
Contributor Author

Please see G_tempfile() for handling resources.

yes it says free() can be used so in this case G_free() should work fine after remove()

lib/raster/put_title.c Outdated Show resolved Hide resolved
@nilason nilason added this to the 8.5.0 milestone Dec 9, 2024
@nilason nilason enabled auto-merge (squash) December 9, 2024 22:52
@nilason nilason merged commit 17dfb69 into OSGeo:main Dec 9, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C libraries raster Related to raster data processing
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants