grass
grass copied to clipboard
lib/vector/Vlib: Fix Resource Leak Issue in ascii.c
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()
In Vect_read_ascii() we should make use of goto, note that also
PointsandCatsneed to be freed too before return.
Done changes