diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-07-28 10:05:37 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-07-28 10:05:37 +0000 |
commit | a2142fd8f11a82a25d421a495ce1eced281110b5 (patch) | |
tree | 383caec0696a4ba18ba84be637b6ffba1c2ae833 /epan/dissectors/packet-sipfrag.c | |
parent | df2d1d3f22347fcbcb37783355fcd1589f99b019 (diff) |
more emeification of tvb_get_string()
svn path=/trunk/; revision=15133
Diffstat (limited to 'epan/dissectors/packet-sipfrag.c')
-rw-r--r-- | epan/dissectors/packet-sipfrag.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sipfrag.c b/epan/dissectors/packet-sipfrag.c index c40bfaf89f..b548ae5f49 100644 --- a/epan/dissectors/packet-sipfrag.c +++ b/epan/dissectors/packet-sipfrag.c @@ -79,7 +79,7 @@ dissect_sipfrag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* For now, add all lines as unparsed strings */ /* Extract & add the string. */ - string = tvb_get_string(tvb, offset, linelen); + string = ep_tvb_get_string(tvb, offset, linelen); proto_tree_add_string_format(sipfrag_tree, hf_line, tvb, offset, linelen, string, @@ -91,9 +91,6 @@ dissect_sipfrag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_append_fstr(pinfo->cinfo, COL_INFO, "(%s", string); } - /* Finished with this string now. */ - g_free(string); - /* Move onto next line. */ offset = next_offset; } |