From 7b258d4bdfd8511e75637b5ed623cd1971e7c873 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 21 Jul 2023 15:22:46 +0200 Subject: [PATCH] -fix crash --- src/auditor/taler-helper-auditor-wire.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c index bfc465b05..e3753b596 100644 --- a/src/auditor/taler-helper-auditor-wire.c +++ b/src/auditor/taler-helper-auditor-wire.c @@ -1629,8 +1629,11 @@ begin_debit_audit (void) static void conclude_credit_history (void) { - GNUNET_CONTAINER_multihashmap_destroy (in_map); - in_map = NULL; + if (NULL != in_map) + { + GNUNET_CONTAINER_multihashmap_destroy (in_map); + in_map = NULL; + } /* credit done, now check debits */ begin_debit_audit (); }