Merge pull request #630 from jokester/close-stdin-after-parse

close stdin and free its FileSource in tidyDocParseStdin
This commit is contained in:
Jim Derry 2017-10-19 17:41:00 -04:00 committed by GitHub
commit 6d8d153143

View file

@ -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;
}