From cb6ef16f5a10936e47cabe0677a83bef480b682e Mon Sep 17 00:00:00 2001 From: Peter Sadrozinski Date: Wed, 19 Dec 2012 19:36:43 -0500 Subject: [PATCH] fix resource leak - close gzfile after polygons read --- src/BuildTiles/Main/tgconstruct_poly.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BuildTiles/Main/tgconstruct_poly.cxx b/src/BuildTiles/Main/tgconstruct_poly.cxx index 967a373a..808c1473 100644 --- a/src/BuildTiles/Main/tgconstruct_poly.cxx +++ b/src/BuildTiles/Main/tgconstruct_poly.cxx @@ -108,6 +108,7 @@ int TGConstruct::LoadLandclassPolys( void ) { } } + gzclose( fp ); SG_LOG(SG_GENERAL, SG_DEBUG, " Loaded " << p.file()); } } // of directory file children