diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-07-28 09:47:28 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-07-28 09:47:28 +0000 |
commit | 0d7a2abbc76409c342cc283ece9f2947aec643b7 (patch) | |
tree | 5400640b4e3e95fc3a1c8358828d8afab3a004f0 /epan/dissectors/packet-telnet.c | |
parent | 7035a45c8f7787ae3a4fed454f08589dea6abb20 (diff) | |
download | wireshark-0d7a2abbc76409c342cc283ece9f2947aec643b7.tar.gz wireshark-0d7a2abbc76409c342cc283ece9f2947aec643b7.tar.bz2 wireshark-0d7a2abbc76409c342cc283ece9f2947aec643b7.zip |
some more memification of tvb_get_string() no obvious memleaks fixed this time :-(
svn path=/trunk/; revision=15131
Diffstat (limited to 'epan/dissectors/packet-telnet.c')
-rw-r--r-- | epan/dissectors/packet-telnet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-telnet.c b/epan/dissectors/packet-telnet.c index 4ccbaa64e5..53c4dad07a 100644 --- a/epan/dissectors/packet-telnet.c +++ b/epan/dissectors/packet-telnet.c @@ -417,9 +417,8 @@ dissect_comport_subopt(packet_info *pinfo _U_, const char *optname, tvbuff_t *tv if (len == 0) { proto_tree_add_text(tree, tvb, offset, 1, "%s Requests Signature",source); } else { - guint8 *sig = tvb_get_string(tvb, offset + 1, len); + guint8 *sig = ep_tvb_get_string(tvb, offset + 1, len); proto_tree_add_text(tree, tvb, offset, 1 + len, "%s Signature: %s",source, sig); - g_free(sig); } break; |