summaryrefslogtreecommitdiff
path: root/asn1/ansi_map
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-08-18 06:33:08 +0000
committerGuy Harris <guy@alum.mit.edu>2012-08-18 06:33:08 +0000
commit549d81fe377435744ed819d16b04dae0197ca24f (patch)
tree881c6d8040726634216cf738e791423500f47cec /asn1/ansi_map
parentc3caa3ba4f8da9347886fd147d9d024a54965ce1 (diff)
downloadwireshark-549d81fe377435744ed819d16b04dae0197ca24f.tar.gz
epan/dissectors/packet-ansi_map.c shouldn't be edited - it's generated
from the files in asn1/ansi_map. Update packet-ansi_map-template.c to reflect the use of session-scope-allocated data for the saved invoke data, and regenerate the dissector - which means that TransactionId_table_cleanup() still exists, and is still used, it just frees only the hash table key, which is g_strdup()ed, not the value, which is automatically freed when the session-scope-allocated data is all freed. svn path=/trunk/; revision=44561
Diffstat (limited to 'asn1/ansi_map')
-rw-r--r--asn1/ansi_map/packet-ansi_map-template.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/asn1/ansi_map/packet-ansi_map-template.c b/asn1/ansi_map/packet-ansi_map-template.c
index d9783d4924..2dec2fa7f9 100644
--- a/asn1/ansi_map/packet-ansi_map-template.c
+++ b/asn1/ansi_map/packet-ansi_map-template.c
@@ -382,11 +382,9 @@ static GHashTable *TransactionId_table=NULL;
static void
TransactionId_table_cleanup(gpointer key , gpointer value, gpointer user_data _U_){
- struct ansi_map_invokedata_t *ansi_map_saved_invokedata = (struct ansi_map_invokedata_t *)value;
gchar *TransactionId_str = (gchar *)key;
g_free(TransactionId_str);
- g_free(ansi_map_saved_invokedata);
}
@@ -447,7 +445,7 @@ update_saved_invokedata(packet_info *pinfo, proto_tree *tree _U_, tvbuff_t *tvb
if(ansi_map_saved_invokedata)
return;
- ansi_map_saved_invokedata = g_new(struct ansi_map_invokedata_t,1);
+ ansi_map_saved_invokedata = se_new(struct ansi_map_invokedata_t);
ansi_map_saved_invokedata->opcode = p_private_tcap->d.OperationCode_private;
ansi_map_saved_invokedata->ServiceIndicator = ServiceIndicator;