mcpe: fix leak in uncompress

This commit is contained in:
Kevin Albertson 2022-12-27 18:50:13 -05:00 committed by John Thacker
parent 39ee45a069
commit 01fda90a45
1 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ mcpe_dissect_login(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
ti = proto_tree_add_item(tree, hf_mcpe_login_data, tvb,
offset, item_size, ENC_NA);
login_tvb = tvb_uncompress(tvb, offset, comp_length);
login_tvb = tvb_child_uncompress(tvb, tvb, offset, comp_length);
if (login_tvb) {
guint32 decomp_length;
proto_tree *login_tree;
@ -292,7 +292,7 @@ mcpe_dissect_batch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
ti = proto_tree_add_item(tree, hf_mcpe_batch_body, tvb,
offset, item_size, ENC_NA);
batch_tvb = tvb_uncompress(tvb, offset, comp_length);
batch_tvb = tvb_child_uncompress(tvb, tvb, offset, comp_length);
if (batch_tvb) {
guint32 decomp_length;
proto_tree *batch_tree;