aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
diff options
context:
space:
mode:
authorHadriel Kaplan <hadrielk@yahoo.com>2015-01-24 15:58:30 -0500
committerHadriel Kaplan <hadrielk@yahoo.com>2015-01-25 19:11:01 +0000
commitaec1bcf9a14116763f6fd4438173c5a953df7d18 (patch)
treebf470cac13a3f3658334da194633302681eea6ee /epan/wmem
parent716f9a319719f9a0d8ffd18e5fc2db481d802735 (diff)
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 'epan/wmem')
-rw-r--r--epan/wmem/wmem_user_cb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wmem/wmem_user_cb.h b/epan/wmem/wmem_user_cb.h
index 070d46c586..ee6550c968 100644
--- a/epan/wmem/wmem_user_cb.h
+++ b/epan/wmem/wmem_user_cb.h
@@ -50,7 +50,7 @@ typedef enum _wmem_cb_event_t {
* allocator The allocator that triggered this callback.
* event The event type that triggered this callback.
* user_data Whatever user_data was originally passed to the call to
- * wmem_register_cleanup_callback().
+ * wmem_register_callback().
* @return FALSE to unregister the callback, TRUE otherwise.
*/
typedef gboolean (*wmem_user_cb_t) (wmem_allocator_t*, wmem_cb_event_t, void*);