jpeg: don't free something allocated from a wmem pool.
If it's allocated with the NULL "pool", yes - that's just a regular allocation - but if it's allocated from a pool, no.
This commit is contained in:
parent
eda26f9e5f
commit
1b54c40a5b
|
@ -731,7 +731,6 @@ process_app2_segment(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint3
|
|||
proto_tree_add_bytes_format_value(subtree, hf_remain_seg_data, tvb, 4 + str_size, -1, NULL, "%u bytes", len - 2 - str_size);
|
||||
proto_item_append_text(ti, " (Unknown identifier)");
|
||||
}
|
||||
wmem_free(NULL, str);
|
||||
}
|
||||
|
||||
static gint
|
||||
|
|
Loading…
Reference in New Issue