Skip to content

Commit

Permalink
v.to.db: Fix Resource Leak issue in query.c (#4802)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Dec 5, 2024
1 parent d75a06a commit fa92ecd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vector/v.to.db/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ int query(struct Map_info *Map)
}

db_close_database_shutdown_driver(driver);
Vect_destroy_line_struct(Points);
Vect_destroy_cats_struct(Cats);
Vect_destroy_field_info(Fi);

return 0;
}

0 comments on commit fa92ecd

Please sign in to comment.