From 23d3e3d665ce2826477bf04ceabe961330cfcd5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Fri, 13 Sep 2013 10:13:19 +0000 Subject: Dario Lombardo via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9147 Migration from emem to wmem for trivial cases (ep_alloc only). svn path=/trunk/; revision=52002 --- epan/dissectors/packet-ncp-nmas.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-ncp-nmas.c') diff --git a/epan/dissectors/packet-ncp-nmas.c b/epan/dissectors/packet-ncp-nmas.c index 885a2fb56a..c5e549028d 100644 --- a/epan/dissectors/packet-ncp-nmas.c +++ b/epan/dissectors/packet-ncp-nmas.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include "packet-ncp-int.h" #include "packet-ncp-nmas.h" @@ -206,7 +206,7 @@ nmas_string(tvbuff_t* tvb, int hfinfo, proto_tree *nmas_tree, int offset, gboole guint16 c_char; guint32 length_remaining = 0; - buffer = (char *)ep_alloc(ITEM_LABEL_LENGTH+1); + buffer = (char *)wmem_alloc(wmem_packet_scope(), ITEM_LABEL_LENGTH+1); if (little) { str_length = tvb_get_letohl(tvb, foffset); } else { @@ -773,4 +773,3 @@ proto_register_nmas(void) * vi: set shiftwidth=4 tabstop=4 expandtab: * :indentSize=4:tabSize=4:noTabs=true: */ - -- cgit v1.2.3