diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-07-18 20:10:14 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-07-18 20:10:14 +0000 |
commit | 221225e0f3bd309b28f042bc7373e337efdff7d3 (patch) | |
tree | 6f8332c29a1b5eeb2d843d99c1280199364d3b63 /epan/wspython | |
parent | 72e160eb4d04fd7d8c40c73ccf0af42d9d99cea2 (diff) |
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
Diffstat (limited to 'epan/wspython')
-rw-r--r-- | epan/wspython/wspy_proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |