diff options
author | Michael Mann <mmann78@netscape.net> | 2015-01-17 16:55:46 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-01-17 23:23:06 +0000 |
commit | 0ad15f88ccf434e8210ca64bc99ceeb24a943eb3 (patch) | |
tree | 5cf07c05bbb3fc4266ebfefba5dc2d6d463d7196 /epan/to_str.c | |
parent | b5eb9710db46b0e68883858fd43b1eb600ec5cf1 (diff) |
Replace the last of ep_alloc and ep_alloc0 with wmem equivalent.
Change-Id: I0338d0acda5e4b9957aad4825ca2cfd6fa506ead
Reviewed-on: https://code.wireshark.org/review/6596
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/to_str.c')
-rw-r--r-- | epan/to_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index 9ef29fe01d..e56381e4db 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -891,7 +891,7 @@ decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint6 mask = mask << (no_of_bits-1); /* Prepare the string, 256 pos for the bits and zero termination, + 64 for the spaces */ - str=(char *)ep_alloc0(256+64); + str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bit=0;bit<((int)(bit_offset&0x07));bit++){ if(bit&&(!(bit%4))){ str[str_p] = ' '; |