Skip to content

lib/vector/Vlib: Fix Resource Leak Issue in ascii.c #5606

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShubhamDesai
Copy link
Contributor

This pull request fixes issue identified by Coverity scan (CID: 1207967, 1207968, 1207969, 1207970, 1207971, 1207972, 1207973, 1207974, 1207975, 1207976, 1207977)
Used G_free(), db_close_database_shutdown_driver(), Vect_destroy_field_info(), Vect_destroy_list(), Vect_destroy_cats_struct()

@github-actions github-actions bot added vector Related to vector data processing C Related code is in C libraries labels Apr 30, 2025
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.

In Vect_read_ascii() we should make use of goto, note that also Points and Cats need to be freed too before return.

@nilason nilason added this to the 8.5.0 milestone May 8, 2025
@nilason nilason self-assigned this May 8, 2025
@github-project-automation github-project-automation bot moved this to In Progress in GRASS GIS Security May 8, 2025
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 vector Related to vector data processing
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants