Allocate expert protocol structs with wmem, cleans up a few KB of leaks in

epan_cleanup().

svn path=/trunk/; revision=50406
This commit is contained in:
Evan Huus 2013-07-06 12:54:13 +00:00
parent 260369a45d
commit 0bc2afcd06
1 changed files with 2 additions and 1 deletions

View File

@ -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;