aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sdp.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-08-17 21:21:50 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-08-17 21:21:50 +0000
commitd47443ba387615fa463f636ca22de072ca595fb1 (patch)
tree06d50649be09639d3197dcd155bd0b906b3a6a3c /epan/dissectors/packet-sdp.c
parenta692269fc9f5b8da50448fb7a5c5d7fab21e458c (diff)
Replace a couple more calls to tvb_get_string() with tvb_get_ephemeral_string(). 2 of the 3 replacements fix memory leaks.
svn path=/trunk/; revision=22542
Diffstat (limited to 'epan/dissectors/packet-sdp.c')
-rw-r--r--epan/dissectors/packet-sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sdp.c b/epan/dissectors/packet-sdp.c
index f2933a7192..54ec9e9bbc 100644
--- a/epan/dissectors/packet-sdp.c
+++ b/epan/dissectors/packet-sdp.c
@@ -1412,7 +1412,7 @@ static void dissect_sdp_media_attribute(tvbuff_t *tvb, packet_info *pinfo, proto
proto_tree_add_item(sdp_media_attribute_tree, hf_media_encoding_name, tvb,
offset, tokenlen, FALSE);
/* get_string is needed here as the string is "saved" in a hashtable */
- transport_info->encoding_name = (char*)tvb_get_string(tvb, offset, tokenlen);
+ transport_info->encoding_name = (char*)tvb_get_ephemeral_string(tvb, offset, tokenlen);
key=g_malloc( sizeof(gint) );
*key=atol((char*)payload_type);