donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit a445d05d81ee6481a60e91af684dce30a8d1e0d8
parent 9bf9696a85af1b66348f88f6d932445e8ac7f7f6
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Mon, 20 Jul 2026 00:02:30 +0200

fix memory leak

Diffstat:
Msrc/lib/donau_api_handle.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/donau_api_handle.c b/src/lib/donau_api_handle.c @@ -929,7 +929,11 @@ DONAU_keys_from_json (const json_t *j) &compat)) { GNUNET_break (0); - GNUNET_free (keys); + /* decode_keys_json may already have allocated version/currency/ + sign_keys/donation_unit_keys before failing; free them all via + the regular refcounted destructor rather than leaking. */ + keys->rc = 1; + DONAU_keys_decref (keys); return NULL; } keys->rc = 1;