forked from osmocom/wireshark
Use tvb_free() instead of g_free() to free tvbuffs.
svn path=/trunk/; revision=16220
This commit is contained in:
parent
d9a581c3c5
commit
c975c8e67a
1 changed files with 23 additions and 23 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue