summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-dcom-remunkn.c6
-rw-r--r--epan/dissectors/packet-infiniband_sdp.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-dcom-remunkn.c b/epan/dissectors/packet-dcom-remunkn.c
index 877f54cbe3..b076ada56f 100644
--- a/epan/dissectors/packet-dcom-remunkn.c
+++ b/epan/dissectors/packet-dcom-remunkn.c
@@ -29,7 +29,7 @@
#include <glib.h>
#include <epan/packet.h>
-#include <epan/emem.h>
+#include <epan/wmem/wmem.h>
#include "packet-dcerpc.h"
#include "packet-dcom.h"
#include "guid-utils.h"
@@ -109,7 +109,7 @@ dissect_remunk_remqueryinterface_rqst(tvbuff_t *tvb, int offset,
/* limit the allocation to a reasonable size */
if(u32ArraySize < 100) {
- call = (remunk_remqueryinterface_call_t *)se_alloc(sizeof(remunk_remqueryinterface_call_t) + u32ArraySize * sizeof(e_uuid_t));
+ call = (remunk_remqueryinterface_call_t *)wmem_alloc(wmem_file_scope(), sizeof(remunk_remqueryinterface_call_t) + u32ArraySize * sizeof(e_uuid_t));
call->iid_count = u32ArraySize;
call->iids = (e_uuid_t *) (call+1);
info->call_data->private_data = call;
@@ -279,7 +279,7 @@ dissect_remunk_remrelease_rqst(tvbuff_t *tvb, int offset,
pszFormat = ",...";
}
col_append_fstr(pinfo->cinfo, COL_INFO, pszFormat, u32PublicRefs, u32PrivateRefs);
-
+
u32ItemIdx++;
}
diff --git a/epan/dissectors/packet-infiniband_sdp.c b/epan/dissectors/packet-infiniband_sdp.c
index 4bb5142e06..ad7a9c5f19 100644
--- a/epan/dissectors/packet-infiniband_sdp.c
+++ b/epan/dissectors/packet-infiniband_sdp.c
@@ -31,6 +31,7 @@
#include <epan/packet.h>
#include <epan/prefs.h>
#include <epan/conversation.h>
+#include <epan/wmem/wmem.h>
#include <stdlib.h>
#include <errno.h>
@@ -529,8 +530,8 @@ proto_reg_handoff_ib_sdp(void)
heur_dissector_add("infiniband.mad.cm.private", dissect_ib_sdp, proto_ib_sdp);
/* allocate enough space in the addresses to store the largest address (a GID) */
- manual_addr_data[0] = se_alloc(GID_SIZE);
- manual_addr_data[1] = se_alloc(GID_SIZE);
+ manual_addr_data[0] = wmem_alloc(wmem_epan_scope(), GID_SIZE);
+ manual_addr_data[1] = wmem_alloc(wmem_epan_scope(), GID_SIZE);
initialized = TRUE;
}
@@ -567,4 +568,3 @@ proto_reg_handoff_ib_sdp(void)
}
}
-