Fix a possible memory leak when using the Stream.End() method.

[INTERPRETER]
* BUG: Fix a possible memory leak when using the Stream.End() method.
This commit is contained in:
gambas 2018-02-17 23:16:28 +01:00
parent 2f65ede40b
commit 5487a3ca88

View file

@ -1815,6 +1815,7 @@ void STREAM_end(STREAM *stream)
stream->common.redirected = FALSE;
STREAM_write(stream, stream->common.redirect->string.buffer, STRING_length(stream->common.redirect->string.buffer));
stream->common.redirected = TRUE;
STREAM_cancel(stream);
}