aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xtp.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-12-28 16:36:57 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-12-28 16:36:57 +0000
commit5debb5c5e378af42b457879252609ca7d3a5355d (patch)
treeb3e403d45c6f33b0f6ac2186c9381a5668426769 /epan/dissectors/packet-xtp.c
parent825850aa893c868f31399fe14962bb8fe36620c5 (diff)
Fix memory leaks involving tvb_get_string[z]().
svn path=/trunk/; revision=40312
Diffstat (limited to 'epan/dissectors/packet-xtp.c')
-rw-r--r--epan/dissectors/packet-xtp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-xtp.c b/epan/dissectors/packet-xtp.c
index 9fc0553e9b..2b38846c91 100644
--- a/epan/dissectors/packet-xtp.c
+++ b/epan/dissectors/packet-xtp.c
@@ -905,6 +905,7 @@ dissect_xtp_diag(tvbuff_t *tvb, proto_tree *tree, guint32 offset) {
/* message(4) */
proto_tree_add_string(xtp_subtree, hf_xtp_diag_msg,
tvb, offset, msg_len, diag->msg);
+ g_free(diag->msg);
return;
}