close stdin and free its FileSource in tidyDocParseStdin

This commit is contained in:
Wang Guan 2017-10-14 01:22:20 +09:00
parent 0f86647741
commit dacb63da31

View file

@ -1057,6 +1057,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;
}