cbor: use scoped pinfo pool instead of global

One reference snuck into the new cbor api, but pinfo was already in
scope so it's a trivial fix.
This commit is contained in:
Evan Huus 2021-09-29 11:56:02 -04:00
parent 6d04c07955
commit 8269572c4f
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ proto_item * proto_tree_add_cbor_bitmask(proto_tree *tree, int hfindex, const gi
}
// Fake TVB data for these functions
guint8 *flags = (guint8 *) wmem_alloc0(wmem_packet_scope(), flagsize);
guint8 *flags = (guint8 *) wmem_alloc0(pinfo->pool, flagsize);
{ // Inject big-endian value directly
guint64 buf = (value ? *value : 0);
for (gint ix = flagsize - 1; ix >= 0; --ix) {