aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-quake2.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-24 03:01:41 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-24 03:01:41 +0000
commit8424286726475831221cf64f4f5c95451f9b7c1f (patch)
tree6e9dd62b51fea388fc2b45110e1e9260caa8d47f /epan/dissectors/packet-quake2.c
parent634b48804bd60e82b97498fb2ec618f1acce7a5c (diff)
some more dissectors converted to ep_tvb_get_string
again at least one obvious memleak was found in the old code git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15031 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-quake2.c')
-rw-r--r--epan/dissectors/packet-quake2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-quake2.c b/epan/dissectors/packet-quake2.c
index 24e3ecb0cd..c2cb8fbce5 100644
--- a/epan/dissectors/packet-quake2.c
+++ b/epan/dissectors/packet-quake2.c
@@ -117,10 +117,9 @@ dissect_quake2_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo _U_,
len = tvb_length_remaining(tvb, offset);
if (cl_tree) {
- text = tvb_get_string(tvb, offset, len);
+ text = ep_tvb_get_string(tvb, offset, len);
proto_tree_add_string(cl_tree, hf_quake2_connectionless_text,
tvb, offset, len, text);
- g_free(text);
}
offset += len;