diff --git a/lib/sparesults/src/xml.rs b/lib/sparesults/src/xml.rs index 5cfa4051..f3abdc0d 100644 --- a/lib/sparesults/src/xml.rs +++ b/lib/sparesults/src/xml.rs @@ -260,6 +260,7 @@ impl XmlQueryResultsReader { Event::Eof => return Err(SyntaxError::msg("Unexpected early file end. All results file should have a and a or tag").into()), _ => (), } + buffer.clear(); } } } @@ -533,6 +534,7 @@ impl XmlSolutionsReader { Event::Eof => return Ok(None), _ => (), } + self.buffer.clear(); } } }