summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-06-16 11:10:06 +0200
committerChristian Grothoff <christian@grothoff.org>2021-06-16 11:10:06 +0200
commite3089761ef26659596b7d6236afe1d7fe8cc14a4 (patch)
treef8959c3c36ea13a798c126c8f4744d912ad350f0 /src
parent2918448338647659e899d485acc659ab095be51c (diff)
downloadexchange-e3089761ef26659596b7d6236afe1d7fe8cc14a4.tar.gz
exchange-e3089761ef26659596b7d6236afe1d7fe8cc14a4.tar.bz2
exchange-e3089761ef26659596b7d6236afe1d7fe8cc14a4.zip
-fix (soft) assertion failure
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index 980ed2721..a116e5c90 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -1536,6 +1536,9 @@ finish_keys_response (struct TEH_KeyStateHandle *ksh)
"Failed to generate key response data for %s\n",
GNUNET_STRINGS_absolute_time_to_string (last_cpd));
GNUNET_CRYPTO_hash_context_abort (hash_context);
+ /* drain heap before destroying it */
+ while (NULL != (dk = GNUNET_CONTAINER_heap_remove_root (heap)))
+ /* intentionally empty */;
GNUNET_CONTAINER_heap_destroy (heap);
json_decref (denoms);
json_decref (sctx.signkeys);