Use tvb_free() instead of g_free() to free tvbuffs.

svn path=/trunk/; revision=16220
This commit is contained in:
Gerald Combs 2005-10-14 15:55:58 +00:00
parent d9a581c3c5
commit c975c8e67a

View file

@ -4903,7 +4903,7 @@ dissect_sir(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* WSP contact point list */
tmp_tvb = tvb_new_subset (tvb, offset, val_len, val_len);
add_addresses(subtree, tmp_tvb, hf_sir_wsp_contact_points);
g_free(tmp_tvb);
tvb_free(tmp_tvb);
/* End of version 0 SIR content */
if (version == 0)
@ -4919,7 +4919,7 @@ dissect_sir(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Non-WSP contact point list */
tmp_tvb = tvb_new_subset (tvb, offset, val_len, val_len);
add_addresses(subtree, tmp_tvb, hf_sir_contact_points);
g_free(tmp_tvb);
tvb_free(tmp_tvb);
offset += val_len;