Skip to content

Commit 2f689a3

Browse files
authored
Fix a memory leak bug in function polygonStringToGeoPolygon (#976)
1 parent 3a02395 commit 2f689a3

File tree

1 file changed

+1
-0
lines changed
  • src/apps/filters

1 file changed

+1
-0
lines changed

src/apps/filters/h3.c

+1
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,7 @@ H3Error polygonStringToGeoPolygon(FILE *fp, char *polygonString,
14781478
}
14791479
if (curDepth > 4) {
14801480
// This is beyond the depth for a valid input, so we abort early
1481+
free(verts);
14811482
return E_FAILED;
14821483
}
14831484
strPos++;

0 commit comments

Comments
 (0)