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/gis: Fix resource leak issue in copy_dir.c #4606

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

ShubhamDesai
Copy link
Contributor

This pull request fixes issue identified by Coverity Scan (CID : 1207596)

Changes Made
Added closedir(dirp); inside the if condition to close the directory pointer in case of errors.

@github-actions github-actions bot added C Related code is in C libraries labels Oct 27, 2024
@nilason nilason added this to the 8.5.0 milestone Oct 27, 2024
@nilason nilason merged commit 937b2f4 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 libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants