aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-02 17:24:26 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-02 17:24:26 +0000
commit5c92eefa9b6e926625e0764107021bfa0383cb7a (patch)
treedf5d85937a68fe2992a26161bf3f45070fd5db68 /epan
parenteba06005dc171f26b4e28793e12a7f9e773aeef0 (diff)
ememify packet-rpc call to tvb_get_string()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15196 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-rpc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rpc.c b/epan/dissectors/packet-rpc.c
index 2c3f272b0a..14bcb8912f 100644
--- a/epan/dissectors/packet-rpc.c
+++ b/epan/dissectors/packet-rpc.c
@@ -620,9 +620,8 @@ dissect_rpc_opaque_data(tvbuff_t *tvb, int offset,
if (string_data) {
char *tmpstr;
- tmpstr = tvb_get_string(tvb, data_offset, string_length_copy);
+ tmpstr = ep_tvb_get_string(tvb, data_offset, string_length_copy);
string_buffer = memcpy(ep_alloc(string_length_copy), tmpstr, string_length_copy);
- g_free(tmpstr);
} else {
string_buffer = tvb_memcpy(tvb, ep_alloc(string_length_copy), data_offset, string_length_copy);
}