aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sysdig-event.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-01-29 14:19:25 -0500
committerMichael Mann <mmann78@netscape.net>2017-01-30 00:05:39 +0000
commitc44c8f9e6c7b633eae3129c58aab991ddc8678ed (patch)
tree7c862670618cfaf30f1efcbb5aa2bbc461e1bc04 /epan/dissectors/packet-sysdig-event.c
parentb3035df88796e0e9058b315791861b03b3b59af7 (diff)
Have format_text_chr use wmem allocated memory.
Change-Id: Idcea59f6fc84238f04d9ffc11a0088ef97beec0c Reviewed-on: https://code.wireshark.org/review/19844 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-sysdig-event.c')
-rw-r--r--epan/dissectors/packet-sysdig-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sysdig-event.c b/epan/dissectors/packet-sysdig-event.c
index 90ea1a2b34..93e27b4949 100644
--- a/epan/dissectors/packet-sysdig-event.c
+++ b/epan/dissectors/packet-sysdig-event.c
@@ -1839,7 +1839,7 @@ static inline const gchar *format_param_str(tvbuff_t *tvb, int offset, int len)
if (len < 2) {
return param_str;
}
- return format_text_chr(param_str, len - 1, ' '); /* Leave terminating NULLs alone. */
+ return format_text_chr(wmem_packet_scope(), param_str, len - 1, ' '); /* Leave terminating NULLs alone. */
}
/* Code to actually dissect the packets */