commit 9c7e6ed4eefe02db198b978f460348222b42577f
parent f3be4d908e8dd583a27b72d91c6f9e42b3f31371
Author: Özgür Kesim <oec@codeblau.de>
Date: Mon, 21 Sep 2026 16:53:26 +0200
exchangedb: free the denomination serials of a withdraw history entry
TALER_EXCHANGEDB_free_reserve_history() released the denomination
hashes of a withdraw entry but not its denom_serials array, so every
reserve history leaked one array per withdraw. Found by test_misc and
test_reserve_history under the valgrind test setup.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/exchangedb/free_reserve_history.c b/src/exchangedb/free_reserve_history.c
@@ -44,6 +44,7 @@ TALER_EXCHANGEDB_free_reserve_history (
struct TALER_EXCHANGEDB_Withdraw *wd;
wd = rh->details.withdraw;
GNUNET_free (wd->denom_pub_hashes);
+ GNUNET_free (wd->denom_serials);
GNUNET_free (wd);
break;
}