From 221225e0f3bd309b28f042bc7373e337efdff7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Sat, 18 Jul 2009 20:10:14 +0000 Subject: From Kovarththanan Rajaratnam via bug 3719: This patch optimizes proto_tree_prime_hfid() + friends and plugs a memleak in the process. From me: Removed unused hfindex in proto_tree_new_item() Fixed ref_count entry in struct header_field_info. svn path=/trunk/; revision=29137 --- epan/wspython/wspy_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/wspython') diff --git a/epan/wspython/wspy_proto.c b/epan/wspython/wspy_proto.c index 5bf673e9ce..2b1dcc6b45 100644 --- a/epan/wspython/wspy_proto.c +++ b/epan/wspython/wspy_proto.c @@ -70,7 +70,7 @@ void hf_register_info_add(hf_register_info *hf, guint8 index, hf[index].hfinfo.blurb = blurb; hf[index].hfinfo.id = 0; hf[index].hfinfo.parent = 0; - hf[index].hfinfo.ref_count = 0; + hf[index].hfinfo.ref_count = HF_REF_TYPE_NONE; hf[index].hfinfo.bitshift = 0; hf[index].hfinfo.same_name_next = NULL; hf[index].hfinfo.same_name_prev = NULL; -- cgit v1.2.3