diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-07-28 09:56:19 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-07-28 09:56:19 +0000 |
commit | df2d1d3f22347fcbcb37783355fcd1589f99b019 (patch) | |
tree | f7011285be6f20666875d3618d1f296306ff9531 /epan/dissectors/packet-dcerpc-nt.c | |
parent | 0d7a2abbc76409c342cc283ece9f2947aec643b7 (diff) | |
download | wireshark-df2d1d3f22347fcbcb37783355fcd1589f99b019.tar.gz |
ememify some more calls to tvb_get_string()
this fixes an obvious memleak in ms-mms
svn path=/trunk/; revision=15132
Diffstat (limited to 'epan/dissectors/packet-dcerpc-nt.c')
-rw-r--r-- | epan/dissectors/packet-dcerpc-nt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dcerpc-nt.c b/epan/dissectors/packet-dcerpc-nt.c index 6c27cf249b..5a1bd4aaa5 100644 --- a/epan/dissectors/packet-dcerpc-nt.c +++ b/epan/dissectors/packet-dcerpc-nt.c @@ -1082,7 +1082,7 @@ void cb_str_postprocess(packet_info *pinfo, proto_tree *tree _U_, * some way we can get that string, rather than duplicating the * efforts of that routine? */ - s = tvb_get_string( + s = ep_tvb_get_string( tvb, start_offset + 12, (end_offset - start_offset - 12) ); /* Append string to COL_INFO */ @@ -1118,8 +1118,6 @@ void cb_str_postprocess(packet_info *pinfo, proto_tree *tree _U_, dcv->private_data = g_strdup(s); } - - g_free(s); } /* Dissect a pointer to a NDR string and append the string value to the |