diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-08-19 08:12:26 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-08-19 08:12:26 +0000 |
commit | 645863b8936d573f7a11febcd259ce02733f8bc1 (patch) | |
tree | 983ee25a33b4051a09c784c1c0a66e182fd07206 /epan/dissectors/packet-smb-common.h | |
parent | 1f7b1af63f346a69ef49d2e3826af3ce2a082790 (diff) |
remove g_malloc() from packet-smb-common
svn path=/trunk/; revision=15420
Diffstat (limited to 'epan/dissectors/packet-smb-common.h')
-rw-r--r-- | epan/dissectors/packet-smb-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-smb-common.h b/epan/dissectors/packet-smb-common.h index 915fe193b0..d31d80ae4b 100644 --- a/epan/dissectors/packet-smb-common.h +++ b/epan/dissectors/packet-smb-common.h @@ -28,6 +28,10 @@ #ifndef __PACKET_SMB_COMMON_H__ #define __PACKET_SMB_COMMON_H__ +/* **data is allocated with ephemeral scope and will be automatically freed + * when packet dissection completes. + * You do NOT need to g_free() that string. + */ int display_unicode_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, char **data); int display_ms_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, char **data); |