summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 21eb1834..2d4148cc 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -861,7 +861,6 @@ wireformat_iterator_cb (void *cls,
return;
}
}
- GNUNET_free (fn);
if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string
(iic->config,
@@ -878,16 +877,20 @@ wireformat_iterator_cb (void *cls,
"WIRE_FILE_MODE",
"Must be octal number\n");
iic->ret = GNUNET_SYSERR;
+ GNUNET_free (fn);
return;
}
if (0 != chmod (fn, mode))
{
TALER_LOG_ERROR ("chmod failed on %s\n", fn);
iic->ret = GNUNET_SYSERR;
+ GNUNET_free (fn);
return;
}
}
+ GNUNET_free (fn);
+
if (GNUNET_OK !=
TALER_JSON_merchant_wire_signature_hash (j,
&h_wire))