aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-collectd.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-09-13 17:25:54 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-09-13 17:25:54 +0000
commit7623232f2500eb1bbe1f4259c2c349c0c81a9cc0 (patch)
treeaef4afc21b6298f54a1a4de0d47670d7941f4353 /epan/dissectors/packet-collectd.c
parentfbef795dc3fa29e703a4a77606ca0f5990ece07b (diff)
Convert a few more dissectors to wmem
svn path=/trunk/; revision=52013
Diffstat (limited to 'epan/dissectors/packet-collectd.c')
-rw-r--r--epan/dissectors/packet-collectd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-collectd.c b/epan/dissectors/packet-collectd.c
index 2d5889f511..ee3b19d4c0 100644
--- a/epan/dissectors/packet-collectd.c
+++ b/epan/dissectors/packet-collectd.c
@@ -33,6 +33,7 @@
#include <epan/prefs.h>
#include <epan/expert.h>
#include <epan/stats_tree.h>
+#include <epan/wmem/wmem.h>
#define STR_NONNULL(str) ((str) ? (str) : "(null)")
@@ -933,8 +934,8 @@ stats_account_string (string_counter_t **ret_list, const gchar *new_value)
return (0);
}
- entry = (string_counter_t *)ep_alloc0 (sizeof (*entry));
- entry->string = ep_strdup (new_value);
+ entry = (string_counter_t *)wmem_alloc0 (wmem_packet_scope(), sizeof (*entry));
+ entry->string = wmem_strdup (wmem_packet_scope(), new_value);
entry->count = 1;
entry->next = *ret_list;