From f5f15362f2cb48088eb8ccf80988f994fecd81c9 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 21 Feb 2025 21:51:26 +0000 Subject: fix some components not being removed from clients and add debugecsleak testbot command --- azalea-protocol/src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 50764c88..01744169 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -116,7 +116,7 @@ fn parse_frame(buffer: &mut Cursor>) -> Result, FrameSplitterE if buffer.position() == buffer.get_ref().len() as u64 { // reset the inner vec once we've reached the end of the buffer so we don't keep // leaking memory - *buffer.get_mut() = Vec::new(); + buffer.get_mut().clear(); buffer.set_position(0); } -- cgit v1.2.3