Skip to content

Commit

Permalink
v.to.db: Fix Resource Leak issue in areas.c (OSGeo#4498)
Browse files Browse the repository at this point in the history
* Fix Resource Leak issue

* Fix Resource Leak issue
  • Loading branch information
ShubhamDesai authored Oct 12, 2024
1 parent 542f3b4 commit 779af80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vector/v.to.db/areas.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <stdlib.h>
#include <math.h>
#include <grass/glocale.h>
#include <grass/vector.h>

#include "global.h"

Expand Down Expand Up @@ -111,5 +112,6 @@ int read_areas(struct Map_info *Map)
G_percent(area_num, nareas, 2);
}

Vect_destroy_cats_struct(Cats);
return 0;
}

0 comments on commit 779af80

Please sign in to comment.