aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-08-18 06:20:32 +0000
committerGuy Harris <guy@alum.mit.edu>2012-08-18 06:20:32 +0000
commitc3caa3ba4f8da9347886fd147d9d024a54965ce1 (patch)
tree193eac9fda4bec58f0465757b3a52ebab6ff0fe8 /asn1
parent14a6d40267c759a1ed35435ffbf52f73d4349a6c (diff)
epan/dissectors/packet-ansi_tcap.c shouldn't be edited - it's generated
from the files in asn1/ansi_tcap. Update packet-ansi_tcap-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=44560
Diffstat (limited to 'asn1')
-rw-r--r--asn1/ansi_tcap/packet-ansi_tcap-template.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/asn1/ansi_tcap/packet-ansi_tcap-template.c b/asn1/ansi_tcap/packet-ansi_tcap-template.c
index 3803186854..82d55dccfe 100644
--- a/asn1/ansi_tcap/packet-ansi_tcap-template.c
+++ b/asn1/ansi_tcap/packet-ansi_tcap-template.c
@@ -167,12 +167,9 @@ static GHashTable *TransactionId_table=NULL;
static void
TransactionId_table_cleanup(gpointer key , gpointer value, gpointer user_data _U_){
- struct ansi_tcap_invokedata_t *ansi_tcap_saved_invokedata = (struct ansi_tcap_invokedata_t *)value;
gchar *TransactionId_str = (gchar *)key;
g_free(TransactionId_str);
- g_free(ansi_tcap_saved_invokedata);
-
}
static void
@@ -226,7 +223,7 @@ save_invoke_data(packet_info *pinfo, proto_tree *tree _U_, tvbuff_t *tvb _U_){
if(ansi_tcap_saved_invokedata)
return;
- ansi_tcap_saved_invokedata = g_new(struct ansi_tcap_invokedata_t,1);
+ ansi_tcap_saved_invokedata = se_new(struct ansi_tcap_invokedata_t);
ansi_tcap_saved_invokedata->OperationCode = ansi_tcap_private.d.OperationCode;
ansi_tcap_saved_invokedata->OperationCode_national = ansi_tcap_private.d.OperationCode_national;
ansi_tcap_saved_invokedata->OperationCode_private = ansi_tcap_private.d.OperationCode_private;