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:
parent
2f65ede40b
commit
5487a3ca88
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue