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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user