aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-acse.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-08-20 18:17:36 +0000
committerGuy Harris <guy@alum.mit.edu>2005-08-20 18:17:36 +0000
commiteadcfd642afa5bc71ae3c16679943ae0d0710d2e (patch)
tree0b4e07bc37ff1d8030967906b535705b9a9072a1 /epan/dissectors/packet-acse.c
parenta749379d3ce529f33d47dafbfac46e302e50f22a (diff)
There's no longer a need to individually remove items from
acse_ctx_oid_table - destroying the hash table will destroy the hash table items, and the destroy function no longer has any work to do because the OID strings are now allocated with se_strdup() (and thus get freed when the capture is closed). Regenerate packet-acse.c, which also regenerates acse-exp.cnf. svn path=/trunk/; revision=15480
Diffstat (limited to 'epan/dissectors/packet-acse.c')
-rw-r--r--epan/dissectors/packet-acse.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/epan/dissectors/packet-acse.c b/epan/dissectors/packet-acse.c
index 72c09130c8..81184a012b 100644
--- a/epan/dissectors/packet-acse.c
+++ b/epan/dissectors/packet-acse.c
@@ -238,11 +238,6 @@ typedef struct _acse_ctx_oid_t {
} acse_ctx_oid_t;
static GHashTable *acse_ctx_oid_table = NULL;
-static gboolean
-free_all_ctx_oid_strings(gpointer key_arg, gpointer value _U_, gpointer user_data _U_)
-{
- return TRUE;
-}
static guint
acse_ctx_oid_hash(gconstpointer k)
{
@@ -262,8 +257,6 @@ static void
acse_init(void)
{
if( acse_ctx_oid_table ){
- g_hash_table_foreach_remove(acse_ctx_oid_table,
- free_all_ctx_oid_strings, NULL);
g_hash_table_destroy(acse_ctx_oid_table);
acse_ctx_oid_table = NULL;
}