From ca29811493a4ed66cfeba26e51352b53e6f3f135 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 4 Mar 2023 13:23:08 +0100 Subject: [PATCH] XML: Properly clears XML parser buffer Avoids to keep growing the buffer indefinitely --- xml/src/parser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xml/src/parser.rs b/xml/src/parser.rs index 14af943..3e54c1d 100644 --- a/xml/src/parser.rs +++ b/xml/src/parser.rs @@ -106,6 +106,7 @@ impl TriplesParser for RdfXmlParser { } _ => {} }; + self.reader_buffer.clear(); Ok(()) }