fix resource leak - close gzfile after polygons read
This commit is contained in:
parent
9f34a0c036
commit
cb6ef16f5a
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ int TGConstruct::LoadLandclassPolys( void ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gzclose( fp );
|
||||||
SG_LOG(SG_GENERAL, SG_DEBUG, " Loaded " << p.file());
|
SG_LOG(SG_GENERAL, SG_DEBUG, " Loaded " << p.file());
|
||||||
}
|
}
|
||||||
} // of directory file children
|
} // of directory file children
|
||||||
|
|
Loading…
Reference in a new issue