From 1ea789d38bb068816adc26afca2b246e12be6330 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Tue, 13 Aug 2024 16:37:16 +0200 Subject: [PATCH] Fix resource leak --- shprewind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shprewind.c b/shprewind.c index b710a6b..64f0a73 100644 --- a/shprewind.c +++ b/shprewind.c @@ -53,6 +53,7 @@ int main(int argc, char **argv) if (hSHPOut == NULL) { + SHPClose(hSHP); printf("Unable to create:%s\n", argv[2]); exit(1); }