merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 828cd528f5861226958a26cbe85e05f16fe2cb31
parent 529cf928d2ec118b146169ea33280f5e8d6d38c6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 10 Jan 2019 13:57:32 +0100

fix double-free bug

Diffstat:
Msrc/backend/merchant.conf | 2+-
Msrc/backend/taler-merchant-httpd.c | 7++-----
2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/backend/merchant.conf b/src/backend/merchant.conf @@ -54,7 +54,7 @@ DEFAULT_PAY_DEADLINE = 1 day [merchantdb-postgres] CONFIG = postgres:///talermerchant -[merchant-instance-default] +[instance-default] KEYFILE = ${TALER_DATA_HOME}/merchant/merchant.priv # [account-merchant] diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c @@ -675,7 +675,6 @@ wireformat_iterator_cb (void *cls, section, "PLUGIN"); GNUNET_free (payto); - GNUNET_free (instance_option); iic->ret = GNUNET_SYSERR; return; } @@ -687,7 +686,6 @@ wireformat_iterator_cb (void *cls, "Failed to load wire plugin `%s'\n", plugin_name); GNUNET_free (plugin_name); - GNUNET_free (instance_option); GNUNET_free (payto); iic->ret = GNUNET_SYSERR; return; @@ -701,7 +699,6 @@ wireformat_iterator_cb (void *cls, payto, plugin_name); GNUNET_free (plugin_name); - GNUNET_free (instance_option); GNUNET_free (payto); TALER_WIRE_plugin_unload (plugin); iic->ret = GNUNET_SYSERR; @@ -1060,8 +1057,8 @@ TMH_lookup_instance (const char *name) * @param json the JSON to inspect; it is not required to * comply with any particular format. It will only be checked * if the field "instance" is there. - * @return a pointer to a #struct MerchantInstance. This will be - * the 'default' merchant if the frontend did not specif any + * @return a pointer to a `struct MerchantInstance`. This will be + * the 'default' merchant if the frontend did not specify any * "instance" field. The user should not care to free the returned * value, as it is taken from a global array that will be freed * by the general shutdown routine. NULL if the frontend specified