diff options
| author | mat <git@matdoes.dev> | 2025-02-21 21:51:26 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-21 21:51:26 +0000 |
| commit | f5f15362f2cb48088eb8ccf80988f994fecd81c9 (patch) | |
| tree | a6c697556aaa3a43ed12eb15fc43946de9ffdb0f /azalea-protocol/src | |
| parent | 5fdea4c0b7c5617133a8b497b9ead8829a21135d (diff) | |
| download | azalea-drasl-f5f15362f2cb48088eb8ccf80988f994fecd81c9.tar.xz | |
fix some components not being removed from clients and add debugecsleak testbot command
Diffstat (limited to 'azalea-protocol/src')
| -rwxr-xr-x | azalea-protocol/src/read.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Vec<u8>>) -> Result<Box<[u8]>, 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); } |
