aboutsummaryrefslogtreecommitdiffstats
path: root/epan/guid-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/guid-utils.c')
-rw-r--r--epan/guid-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/guid-utils.c b/epan/guid-utils.c
index 490ebd1a08..66020afd4d 100644
--- a/epan/guid-utils.c
+++ b/epan/guid-utils.c
@@ -51,8 +51,8 @@ ResolveWin32UUID(e_guid_t if_id, char *uuid_name, int uuid_name_max_len)
DWORD uuid_max_size = MAX_PATH;
TCHAR *reg_uuid_str;
- reg_uuid_name=ep_alloc(MAX_PATH*sizeof(TCHAR));
- reg_uuid_str=ep_alloc(MAX_PATH*sizeof(TCHAR));
+ reg_uuid_name=wmem_alloc(wmem_packet_scope(), MAX_PATH*sizeof(TCHAR));
+ reg_uuid_str=wmem_alloc(wmem_packet_scope(), MAX_PATH*sizeof(TCHAR));
if(uuid_name_max_len < 2){
return 0;
@@ -159,7 +159,7 @@ guids_get_guid_name(const e_guid_t *guid)
#ifdef _WIN32
/* try to resolve the mapping from the Windows registry */
/* XXX - prefill the resolving database with all the Windows registry entries once at init only (instead of searching each time)? */
- uuid_name=ep_alloc(128);
+ uuid_name=wmem_alloc(wmem_packet_scope(), 128);
if(ResolveWin32UUID(*guid, uuid_name, 128)) {
return uuid_name;
}
@@ -191,7 +191,7 @@ guids_resolve_guid_to_str(const e_guid_t *guid)
return name;
}
- return ep_strdup_printf("%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
+ return wmem_strdup_printf(wmem_packet_scope(), "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
guid->data1, guid->data2, guid->data3,
guid->data4[0], guid->data4[1],
guid->data4[2], guid->data4[3],