From 6a6d7ea34f43515dfe3f52aa96b943c272c925a7 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 22 Dec 2016 15:12:27 -0500 Subject: Convert range API to always use wmem memory. This is mostly to address memory leaks in range preferences (the biggest user of range functionality) on shutdown. Now range preferences must use epan scoped memory when referencing internal preference structures to keep consistency. Change-Id: Idc644f59b5b42fa1d46891542b53ff13ea754157 Reviewed-on: https://code.wireshark.org/review/19387 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu Reviewed-by: Michael Mann --- epan/prefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/prefs.h') diff --git a/epan/prefs.h b/epan/prefs.h index 93094c048c..d2b193a243 100644 --- a/epan/prefs.h +++ b/epan/prefs.h @@ -641,7 +641,7 @@ prefs_set_pref_e prefs_set_preference_obsolete(pref_t *pref); WS_DLL_PUBLIC guint prefs_get_uint_value(const char *module_name, const char* pref_name); /* - * Get the current range_copy()ed range preference value (so it needs to be freed). This allows the + * Get the current range preference value (maintained by pref, so it doesn't need to be freed). This allows the * preference structure to remain hidden from those that doesn't really need it. */ WS_DLL_PUBLIC range_t* prefs_get_range_value(const char *module_name, const char* pref_name); -- cgit v1.2.1