Skip to content

Commit 8ca576d

Browse files
PaulWesselgithub-actions[bot]
authored andcommitted
Fix statis reset (#4012)
See GenericMappingTools/pygmt#569 and discussion.
1 parent 7c5146d commit 8ca576d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gmt_shore.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,6 +1629,7 @@ int gmt_shore_level_at_point (struct GMT_CTRL *GMT, struct GMT_SHORE *c, int ins
16291629
for (id = 0; id < 2; id++) {
16301630
gmt_free_shore_polygons (GMT, p[id], np[id]);
16311631
if (np[id]) gmt_M_free (GMT, p[id]);
1632+
np[id] = 0;
16321633
}
16331634
gmt_free_shore (GMT, c); /* Free previously allocated arrays */
16341635
last_bin = INT_MAX; /* In case process lives on in API */

0 commit comments

Comments
 (0)