close stdin and free its FileSource in tidyDocParseStdin
This commit is contained in:
parent
0f86647741
commit
dacb63da31
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue