grass icon indicating copy to clipboard operation
grass copied to clipboard

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

Open ShubhamDesai opened this issue 7 months ago • 1 comments

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()

ShubhamDesai avatar Apr 30 '25 00:04 ShubhamDesai

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

Done changes

ShubhamDesai avatar Jun 16 '25 23:06 ShubhamDesai