aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-multipart.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-28 09:56:19 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-28 09:56:19 +0000
commitdbcee23f396990ce23d81bff21f9b4b8f9934ba1 (patch)
treef7011285be6f20666875d3618d1f296306ff9531 /epan/dissectors/packet-multipart.c
parent36043fbc07221b65d297c7b708661de9ba150425 (diff)
ememify some more calls to tvb_get_string()
this fixes an obvious memleak in ms-mms git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15132 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-multipart.c')
-rw-r--r--epan/dissectors/packet-multipart.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-multipart.c b/epan/dissectors/packet-multipart.c
index 64afba27b1..cf6063da82 100644
--- a/epan/dissectors/packet-multipart.c
+++ b/epan/dissectors/packet-multipart.c
@@ -559,11 +559,10 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary,
while (line_len > 0)
{
gint colon_offset;
- char *hdr_str = tvb_get_string(tvb, offset, next_offset - offset);
+ char *hdr_str = ep_tvb_get_string(tvb, offset, next_offset - offset);
char *header_str;
header_str = unfold_and_compact_mime_header(hdr_str, &colon_offset);
- g_free(hdr_str);
if (colon_offset <= 0) {
if (tree) {
proto_tree_add_text(subtree, tvb, offset, next_offset - offset,