Skip to content

Commit 4418961

Browse files
authored
Merge pull request #153 from thbeu/fix-resource-leak
Fix resource leak on error handling
2 parents 11d183b + 1ea789d commit 4418961

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shprewind.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ int main(int argc, char **argv)
5353

5454
if (hSHPOut == NULL)
5555
{
56+
SHPClose(hSHP);
5657
printf("Unable to create:%s\n", argv[2]);
5758
exit(1);
5859
}

0 commit comments

Comments
 (0)