forked from osmocom/wireshark
Use capture scoped memory for hash table functionality
svn path=/trunk/; revision=44558
This commit is contained in:
parent
5672bee3a8
commit
db98d944e5
|
@ -1183,7 +1183,6 @@ ansi_map_init_transaction_table(void){
|
|||
|
||||
/* Destroy any existing memory chunks / hashes. */
|
||||
if (TransactionId_table){
|
||||
g_hash_table_foreach(TransactionId_table, TransactionId_table_cleanup, NULL);
|
||||
g_hash_table_destroy(TransactionId_table);
|
||||
}
|
||||
|
||||
|
@ -1235,7 +1234,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;
|
||||
|
||||
|
|
|
@ -271,7 +271,6 @@ ansi_tcap_init_transaction_table(void){
|
|||
|
||||
/* Destroy any existing memory chunks / hashes. */
|
||||
if (TransactionId_table){
|
||||
g_hash_table_foreach(TransactionId_table, TransactionId_table_cleanup, NULL);
|
||||
g_hash_table_destroy(TransactionId_table);
|
||||
TransactionId_table = NULL;
|
||||
}
|
||||
|
@ -317,7 +316,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;
|
||||
|
|
Loading…
Reference in New Issue