aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tn3270.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-09-12 20:25:51 +0000
committerJörg Mayer <jmayer@loplof.de>2013-09-12 20:25:51 +0000
commit1965ab5d3e56aac36a5ad5537161556278047567 (patch)
tree73c5fda2b68c960224abab80348270aa8189e61a /epan/dissectors/packet-tn3270.c
parent934cc4526dfe2d2f313d166342d39868384d2d27 (diff)
emem -> wmem ("tshark -v" tested)
svn path=/trunk/; revision=51979
Diffstat (limited to 'epan/dissectors/packet-tn3270.c')
-rw-r--r--epan/dissectors/packet-tn3270.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tn3270.c b/epan/dissectors/packet-tn3270.c
index 359daf2b73..35777e2b50 100644
--- a/epan/dissectors/packet-tn3270.c
+++ b/epan/dissectors/packet-tn3270.c
@@ -53,6 +53,7 @@
#include <epan/packet.h>
#include <epan/address.h>
+#include <epan/wmem/wmem.h>
#include <epan/conversation.h>
#include <epan/strutil.h>
@@ -4734,7 +4735,7 @@ dissect_structured_fields(proto_tree *tn3270_tree, tvbuff_t *tvb, gint offset,
}
/* Not found */
- sf_id_str = ep_strdup_printf("Unknown [%0*x]", sf_id_len*2, sf_id);
+ sf_id_str = wmem_strdup_printf(wmem_packet_scope(), "Unknown [%0*x]", sf_id_len*2, sf_id);
display_sf_hdr(tn3270_tree, tvb, offset, sf_length,
sf_length, sf_id_len, sf_id_str);
offset += sf_length;
@@ -5322,7 +5323,7 @@ add_tn3270_conversation(packet_info *pinfo, int tn3270e, gint model)
/* No. Attach that information to the conversation, and add
* it to the list of information structures.
*/
- tn3270_info = se_new(tn3270_conv_info_t);
+ tn3270_info = wmem_new(wmem_file_scope(), tn3270_conv_info_t);
COPY_ADDRESS(&(tn3270_info->outbound_addr), &(pinfo->dst));
tn3270_info->outbound_port = pinfo->destport;