forked from osmocom/wireshark
CQL: free buffer earlier in case of Snappy decompression failure
Change-Id: I3048823b4057caf49f2f6bf28cf2389dc3c88f27 Reviewed-on: https://code.wireshark.org/review/18255 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
2c071296f5
commit
418b7d125d
|
@ -738,6 +738,8 @@ dissect_cql_tcp_pdu(tvbuff_t* raw_tvb, packet_info* pinfo, proto_tree* tree, voi
|
|||
add_new_data_source(pinfo, tvb, "Decompressed Data");
|
||||
compression_level = CQL_COMPRESSION_SNAPPY;
|
||||
message_length = (guint32)orig_size;
|
||||
} else {
|
||||
wmem_free(pinfo->pool, decompressed_buffer);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue