Merge pull request #630 from jokester/close-stdin-after-parse
close stdin and free its FileSource in tidyDocParseStdin
This commit is contained in:
commit
6d8d153143
|
@ -1071,6 +1071,7 @@ int tidyDocParseStdin( TidyDocImpl* doc )
|
|||
{
|
||||
StreamIn* in = TY_(FileInput)( doc, stdin, cfg( doc, TidyInCharEncoding ));
|
||||
int status = TY_(DocParseStream)( doc, in );
|
||||
TY_(freeFileSource)(&in->source, yes);
|
||||
TY_(freeStreamIn)(in);
|
||||
return status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue