aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-smb-common.h')
-rw-r--r--epan/dissectors/packet-smb-common.h4
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);