fix double free in opengzfile

Now gzstream->open consistently does not keep a copy of the input stream
in case of failure - no matter the type of failure.
This commit is contained in:
ac-stef
2017-04-22 12:41:51 +02:00
parent 9820e59adb
commit 6af6f650d1
+1 -1
View File
@@ -594,7 +594,7 @@ struct gzstream : stream
if(reading)
{
if(!checkheader()) { stopreading(); return false; }
if(!checkheader()) { stopreading(); file = NULL; return false; }
}
else if(writing) writeheader();
return true;