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

r.in.poly: Fix Resource Leak issue in poly2rast.c #4605

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

ShubhamDesai
Copy link
Contributor

This pull request fixes issued identified by coverity scan (CID : 1207593)

Changes made:

  • Added fclose(ifd); in the error handling block when stat < 0.
  • Added fclose(ifd); at the end of the function to ensure the file is closed before returning.

@github-actions github-actions bot added raster Related to raster data processing C Related code is in C module labels Oct 27, 2024
@nilason nilason added this to the 8.5.0 milestone Oct 27, 2024
@nilason nilason merged commit 84afcf4 into OSGeo:main Oct 27, 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 module raster Related to raster data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants