diff options
author | Hadriel Kaplan <hadrielk@yahoo.com> | 2015-01-24 15:58:30 -0500 |
---|---|---|
committer | Hadriel Kaplan <hadrielk@yahoo.com> | 2015-01-25 19:11:01 +0000 |
commit | aec1bcf9a14116763f6fd4438173c5a953df7d18 (patch) | |
tree | bf470cac13a3f3658334da194633302681eea6ee /doc/README.wmem | |
parent | 716f9a319719f9a0d8ffd18e5fc2db481d802735 (diff) | |
download | wireshark-aec1bcf9a14116763f6fd4438173c5a953df7d18.tar.gz wireshark-aec1bcf9a14116763f6fd4438173c5a953df7d18.tar.bz2 wireshark-aec1bcf9a14116763f6fd4438173c5a953df7d18.zip |
Lua can free tvbuffs too early
Lua-created tvbuffs should be kept around for the duration of pinfo's
lifetime, instead of only for the duration of frame dissection. So
instead of using the frame dissector's frame_end_routine, we'll register
a callback to wmem for pinfo pool's allocator.
Bug: 10888
Change-Id: I3e9db671c3f2a7cab9e258aca17f3be8acaf2417
Reviewed-on: https://code.wireshark.org/review/6768
Petri-Dish: Hadriel Kaplan <hadrielk@yahoo.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
Tested-by: Hadriel Kaplan <hadrielk@yahoo.com>
Diffstat (limited to 'doc/README.wmem')
-rw-r--r-- | doc/README.wmem | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/README.wmem b/doc/README.wmem index 444fc26c7a..9883010407 100644 --- a/doc/README.wmem +++ b/doc/README.wmem @@ -131,7 +131,7 @@ WARNING: You probably don't actually need these; use them only when you're Sometimes (though hopefully rarely) it may be necessary to store data in a wmem pool that requires additional cleanup before it is freed. For example, perhaps you have a pointer to a file-handle that needs to be closed. In this case, you -can register a callback with the wmem_register_cleanup_callback function +can register a callback with the wmem_register_callback function declared in wmem_user_cb.h. Every time the memory in a pool is freed, all registered cleanup functions are called first. |