diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-08-10 14:37:52 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-08-10 14:37:52 +0000 |
commit | 0fbaa6140f5e4e523a7f6a3482ebbd0bcfa58e2a (patch) | |
tree | aabd087e13aa4f308e3e14bd189b5087ec531a9a /epan/dissectors/packet-smb-common.c | |
parent | 74fff802f958603c7cf05a764079d546d15ecd4d (diff) |
tvb_get_stringz() to tvb_get_ephemeral_stringz() conversion
svn path=/trunk/; revision=15276
Diffstat (limited to 'epan/dissectors/packet-smb-common.c')
-rw-r--r-- | epan/dissectors/packet-smb-common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-smb-common.c b/epan/dissectors/packet-smb-common.c index cb9d6fdc54..6619010ada 100644 --- a/epan/dissectors/packet-smb-common.c +++ b/epan/dissectors/packet-smb-common.c @@ -65,15 +65,13 @@ int display_ms_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, /* display a string from the tree and return the new offset */ - str = tvb_get_stringz(tvb, offset, &len); + str = tvb_get_ephemeral_stringz(tvb, offset, &len); proto_tree_add_string(tree, hf_index, tvb, offset, len, str); /* Return a copy of the string if requested */ if (data) *data = str; - else - g_free(str); return offset+len; } |