aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sipfrag.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-07-28 10:05:37 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-07-28 10:05:37 +0000
commita2142fd8f11a82a25d421a495ce1eced281110b5 (patch)
tree383caec0696a4ba18ba84be637b6ffba1c2ae833 /epan/dissectors/packet-sipfrag.c
parentdf2d1d3f22347fcbcb37783355fcd1589f99b019 (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.c5
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;
}