diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-08-17 21:21:50 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-08-17 21:21:50 +0000 |
commit | f97590c6f66f979e491dd57109961dd34d08c315 (patch) | |
tree | 06d50649be09639d3197dcd155bd0b906b3a6a3c /epan/dissectors/packet-sdp.c | |
parent | e2ee72cfc2fa583b176c9156de9f365fa07eb479 (diff) |
Replace a couple more calls to tvb_get_string() with tvb_get_ephemeral_string(). 2 of the 3 replacements fix memory leaks.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22542 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sdp.c')
-rw-r--r-- | epan/dissectors/packet-sdp.c | 2 |
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); |