aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2007-01-26 17:12:00 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2007-01-26 17:12:00 +0000
commite4e739a5caf033d2ae9c7885e914809acc13a746 (patch)
treec21bd0831887e779d08139701ea749d5dfae9ea0 /doc
parentf8be165898b1931b2023c333bc954e77c5abff15 (diff)
From Graham Bloice:
In the Developers Guide, Section 9.3, Example 9.17. Decompressing data packets for dissection The code calls tvb_set_free_cb() for the newly created next_tvb. This is unnecessary as the call to tvb_set_child_real_data() adds next_tvb to the chained list of tvb, thus ensuring that next_tvb is correctly deleted. In fact when I had the call in, Visual Studio kept breaking deep down in ntdll.dll, probably because of a double free every time the main tvb was deleted. In README.developer, para 2..2.7 The example conversation code doesn't assign the result of conversation_new() back into the conversation variable. svn path=/trunk/; revision=20569
Diffstat (limited to 'doc')
-rw-r--r--doc/README.developer2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/README.developer b/doc/README.developer
index 6d603f968e..d713f6b14d 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -2809,7 +2809,7 @@ else {
/* create the conversation with your data pointer */
- conversation_new(pinfo->fd->num, &pinfo->src, &pinfo->dst, pinfo->ptype,
+ conversation = conversation_new(pinfo->fd->num, &pinfo->src, &pinfo->dst, pinfo->ptype,
pinfo->srcport, pinfo->destport, 0);
conversation_add_proto_data(conversation, my_proto, (void *)data_ptr);
}