From 1390569a9940e06cf066c63abf196e46c7f0ef6c Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sat, 19 Jan 2013 19:36:20 +0000 Subject: Use wmem epan-scoped memory when initializing dcerpc so that it gets freed when we shut down. Cleans up 5Kb worth of valgrind sorta-false-positive leaks. svn path=/trunk/; revision=47168 --- epan/dissectors/packet-dcerpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c index 0d57a8cf0e..14e2a84ada 100644 --- a/epan/dissectors/packet-dcerpc.c +++ b/epan/dissectors/packet-dcerpc.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -890,7 +891,7 @@ again: } if (!vs) { - vs = g_malloc((num_sd + 1) * sizeof(value_string)); + vs = wmem_alloc(wmem_epan_scope(), (num_sd + 1) * sizeof(value_string)); goto again; } -- cgit v1.2.3