From 8269572c4f6700583025c29d4c1d90dfb99a2d19 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Wed, 29 Sep 2021 11:56:02 -0400 Subject: [PATCH] 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. --- epan/wscbor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/wscbor.c b/epan/wscbor.c index e303071e36..c3022b068c 100644 --- a/epan/wscbor.c +++ b/epan/wscbor.c @@ -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) {