aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dhcpv6.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-28 09:47:28 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-28 09:47:28 +0000
commit36043fbc07221b65d297c7b708661de9ba150425 (patch)
tree5400640b4e3e95fc3a1c8358828d8afab3a004f0 /epan/dissectors/packet-dhcpv6.c
parentc0aaabbc227e84358cef0b69a2ff15cd5781336b (diff)
some more memification of tvb_get_string() no obvious memleaks fixed this time :-(
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15131 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dhcpv6.c')
-rw-r--r--epan/dissectors/packet-dhcpv6.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dhcpv6.c b/epan/dissectors/packet-dhcpv6.c
index edaaef6410..e5f5db2905 100644
--- a/epan/dissectors/packet-dhcpv6.c
+++ b/epan/dissectors/packet-dhcpv6.c
@@ -580,11 +580,10 @@ dhcpv6_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree,
status_code);
if (optlen - 2 > 0) {
- status_message = tvb_get_string(tvb, off + 2, optlen - 2);
+ status_message = ep_tvb_get_string(tvb, off + 2, optlen - 2);
proto_tree_add_text(subtree, tvb, off + 2, optlen - 2,
"Status Message: %s",
status_message);
- g_free(status_message);
}
}
break;
@@ -728,9 +727,8 @@ dhcpv6_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree,
break;
case OPTION_TIME_ZONE:
if (optlen > 0) {
- buf = tvb_get_string(tvb, off, optlen);
+ buf = ep_tvb_get_string(tvb, off, optlen);
proto_tree_add_text(subtree, tvb, off, optlen, "time-zone: %s", buf);
- g_free(buf);
}
break;
case OPTION_LIFETIME: