diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-02-13 16:24:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-02-13 16:24:38 +0100 |
commit | 12deb6c2670f663a3c0734e28673f508fffa3210 (patch) | |
tree | 0ca246a3b65bf20c541859882edb74225db4a3df /src/exchange/taler-exchange-httpd_wire.c | |
parent | cd17d095e8d542d6cef854e8394472364e9a01b9 (diff) | |
download | exchange-12deb6c2670f663a3c0734e28673f508fffa3210.tar.gz exchange-12deb6c2670f663a3c0734e28673f508fffa3210.tar.bz2 exchange-12deb6c2670f663a3c0734e28673f508fffa3210.zip |
fix memory leaks
Diffstat (limited to 'src/exchange/taler-exchange-httpd_wire.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_wire.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_wire.c b/src/exchange/taler-exchange-httpd_wire.c index 1942c7e4e..e01355c60 100644 --- a/src/exchange/taler-exchange-httpd_wire.c +++ b/src/exchange/taler-exchange-httpd_wire.c @@ -280,12 +280,18 @@ build_wire_state (void) } } wire_reply = json_pack ( - "{s:O, s:O, s:o}", - "accounts", wire_accounts_array, - "fees", wire_fee_object, + "{s:o, s:o, s:o}", + "accounts", + wire_accounts_array, + "fees", + wire_fee_object, "master_public_key", GNUNET_JSON_from_data_auto (&TEH_master_public_key)); - GNUNET_assert (NULL != wire_reply); + if (NULL == wire_reply) + { + GNUNET_break (0); + return NULL; + } { struct WireStateHandle *wsh; |