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:
Pascal Quantin 2016-10-18 10:26:37 +02:00
parent 2c071296f5
commit 418b7d125d
1 changed files with 2 additions and 0 deletions

View File

@ -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