aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ositp.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-09-15 18:03:32 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-09-15 18:03:32 +0000
commit20a40260d7b8d0353f82f389b17c6c27223d8d95 (patch)
treea7670a45def65438a559090921ceeda76d9a1a3e /epan/dissectors/packet-ositp.c
parenta54e67abce764d954d915d62f9d30b675b5262ce (diff)
A few more dissectors converted to wmem
svn path=/trunk/; revision=52071
Diffstat (limited to 'epan/dissectors/packet-ositp.c')
-rw-r--r--epan/dissectors/packet-ositp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ositp.c b/epan/dissectors/packet-ositp.c
index 8716ee4126..a5d46dcb71 100644
--- a/epan/dissectors/packet-ositp.c
+++ b/epan/dissectors/packet-ositp.c
@@ -34,7 +34,7 @@
#include <epan/packet.h>
#include <epan/reassemble.h>
#include <epan/conversation.h>
-#include <epan/emem.h>
+#include <epan/wmem/wmem.h>
#include "packet-frame.h"
#include "packet-osi.h"
#include "packet-osi-options.h"
@@ -356,7 +356,7 @@ static gchar *print_tsap(const guchar *tsap, int length)
gboolean allprintable;
gint idx = 0, returned_length;
- cur=(gchar *)ep_alloc(MAX_TSAP_LEN * 2 + 3);
+ cur=(gchar *)wmem_alloc(wmem_packet_scope(), MAX_TSAP_LEN * 2 + 3);
cur[0] = '\0';
if (length <= 0 || length > MAX_TSAP_LEN)
g_snprintf(cur, MAX_TSAP_LEN * 2 + 3, "<unsupported TSAP length>");
@@ -1012,7 +1012,7 @@ static int ositp_decode_DT(tvbuff_t *tvb, int offset, guint8 li, guint8 tpdu,
prev_dst_ref = (guint32 *)p_get_proto_data (pinfo->fd, proto_clnp, 0);
if (!prev_dst_ref) {
/* First COTP in frame - save previous dst_ref as offset */
- prev_dst_ref = se_new(guint32);
+ prev_dst_ref = wmem_new(wmem_file_scope(), guint32);
*prev_dst_ref = cotp_dst_ref;
p_add_proto_data (pinfo->fd, proto_clnp, 0, prev_dst_ref);
} else if (cotp_frame_reset) {