summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-06-11 21:48:43 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-06-11 21:48:43 +0200
commit45e9d2bc921325cd2d9089cf0233028544aaff47 (patch)
tree012695e5a62bbc44a385072e0080918ef6401ac6
parenta6d8d76aed80f90eb4cba9df87b5cda5b4fc7a6d (diff)
downloadmerchant-45e9d2bc921325cd2d9089cf0233028544aaff47.tar.gz
merchant-45e9d2bc921325cd2d9089cf0233028544aaff47.tar.bz2
merchant-45e9d2bc921325cd2d9089cf0233028544aaff47.zip
Moving free below
-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))