summaryrefslogtreecommitdiff
path: root/asn1/acse/packet-acse-template.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-08-19 15:50:48 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-08-19 15:50:48 +0000
commit831775973a43c8eba55ac09cf5687137fa986116 (patch)
tree8a8fa1129df4db413502868526012f8770843beb /asn1/acse/packet-acse-template.c
parent884ad175725364b3cb318cdec918d3e83d5491cd (diff)
downloadwireshark-831775973a43c8eba55ac09cf5687137fa986116.tar.gz
some ememification
svn path=/trunk/; revision=15433
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);
}