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
This commit is contained in:
Guy Harris 2005-08-20 18:17:36 +00:00
parent a749379d3c
commit eadcfd642a
3 changed files with 2 additions and 16 deletions

View File

@ -1,7 +1,7 @@
#.IMPORT_TAG
EXTERNAL BER_CLASS_UNI 8
AP_title BER_CLASS_UNI -1/*choice*/
AE_qualifier BER_CLASS_UNI -1/*choice*/
AP_title BER_CLASS_ANY/*choice*/ -1/*choice*/
AE_qualifier BER_CLASS_ANY/*choice*/ -1/*choice*/
AE_invocation_identifier BER_CLASS_UNI BER_UNI_TAG_INTEGER
AP_invocation_identifier BER_CLASS_UNI BER_UNI_TAG_INTEGER
#.END

View File

@ -80,11 +80,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)
{
@ -104,8 +99,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;
}

View File

@ -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;
}