commit 1d56b3cb8c19ed0d7d302d4b9a80d96c2d9d3af8 parent 852cd8a0ffe62fdae8b5e717dafcde1c5bbe9bbf Author: paulnasca <paulnasca> Date: Wed, 25 Aug 2004 21:22:12 +0000 *** empty log message *** Diffstat:
M | src/Misc/XMLwrapper.C | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/Misc/XMLwrapper.C b/src/Misc/XMLwrapper.C @@ -295,7 +295,10 @@ char *XMLwrapper::doloadfile(const char *filename){ // first check it's size while(!gzeof(gzfile)) { gzseek (gzfile,1024*1024,SEEK_CUR); - if (gztell(gzfile)>10000000) goto notgzip;//the file is not gzip + if (gztell(gzfile)>10000000) { + gzclose(gzfile); + goto notgzip;//the file is not gzip + }; }; filesize=gztell(gzfile);