summaryrefslogtreecommitdiff
path: root/asn1/acse/packet-acse-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/acse/packet-acse-template.c')
-rw-r--r--asn1/acse/packet-acse-template.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/asn1/acse/packet-acse-template.c b/asn1/acse/packet-acse-template.c
index b8f9f76af2..7e6b2b7cf5 100644
--- a/asn1/acse/packet-acse-template.c
+++ b/asn1/acse/packet-acse-template.c
@@ -83,11 +83,6 @@ static GHashTable *acse_ctx_oid_table = NULL;
static gboolean
free_all_ctx_oid_strings(gpointer key_arg, gpointer value _U_, gpointer user_data _U_)
{
- acse_ctx_oid_t *aco=(acse_ctx_oid_t *)key_arg;
- if(aco->oid){
- g_free(aco->oid);
- aco->oid=NULL;
- }
return TRUE;
}
static guint
@@ -125,14 +120,12 @@ register_ctx_id_and_oid(packet_info *pinfo _U_, guint32 idx, char *oid)
acse_ctx_oid_t *aco, *tmpaco;
aco=se_alloc(sizeof(acse_ctx_oid_t));
aco->ctx_id=idx;
- aco->oid=g_strdup(oid);
+ aco->oid=se_strdup(oid);
/* if this ctx already exists, remove the old one first */
tmpaco=(acse_ctx_oid_t *)g_hash_table_lookup(acse_ctx_oid_table, aco);
if(tmpaco){
g_hash_table_remove(acse_ctx_oid_table, tmpaco);
- g_free(tmpaco->oid);
- tmpaco->oid=NULL;
}
g_hash_table_insert(acse_ctx_oid_table, aco, aco);
}