diff options
author | Evan Huus <eapache@gmail.com> | 2013-07-06 12:54:13 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-07-06 12:54:13 +0000 |
commit | 0bc2afcd06496c36e6d1c3f2cd6e432d09907398 (patch) | |
tree | 3b255423c99bb0c2212e8546b8c8c00d3e2b8f70 /epan/expert.c | |
parent | 260369a45dc5e57f3e192d3384388f3b6855e8f6 (diff) | |
download | wireshark-0bc2afcd06496c36e6d1c3f2cd6e432d09907398.tar.gz wireshark-0bc2afcd06496c36e6d1c3f2cd6e432d09907398.tar.bz2 wireshark-0bc2afcd06496c36e6d1c3f2cd6e432d09907398.zip |
Allocate expert protocol structs with wmem, cleans up a few KB of leaks in
epan_cleanup().
svn path=/trunk/; revision=50406
Diffstat (limited to 'epan/expert.c')
-rw-r--r-- | epan/expert.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/expert.c b/epan/expert.c index 7a51891ff7..ed7cc687e6 100644 --- a/epan/expert.c +++ b/epan/expert.c @@ -31,6 +31,7 @@ #include "packet.h" #include "expert.h" #include "emem.h" +#include "wmem/wmem.h" #include "tap.h" @@ -172,7 +173,7 @@ expert_module_t *expert_register_protocol(int id) protocol = find_protocol_by_id(id); - module = g_new(expert_module_t,1); + module = wmem_new(wmem_epan_scope(), expert_module_t); module->proto_id = id; module->proto_name = proto_get_protocol_short_name(protocol); module->experts = NULL; |