summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-aggregator.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2020-01-16 00:11:51 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2020-01-16 00:12:25 +0100
commit90e15720391b2943096352c023f64544a8d009a8 (patch)
treec6c6934c1a63c8c636776fcd86c8174ecc6f480f /src/exchange/taler-exchange-aggregator.c
parent2c4bdcc4c0886ff2dbeb1fe5d9fe29ddae1244a8 (diff)
downloadexchange-90e15720391b2943096352c023f64544a8d009a8.tar.gz
exchange-90e15720391b2943096352c023f64544a8d009a8.tar.bz2
exchange-90e15720391b2943096352c023f64544a8d009a8.zip
Adapting wirewatch tests to new style.
Diffstat (limited to 'src/exchange/taler-exchange-aggregator.c')
-rw-r--r--src/exchange/taler-exchange-aggregator.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c
index f1abbe2b..37ac5336 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -1244,6 +1244,10 @@ expired_reserve_cb (void *cls,
erc->async_cont = GNUNET_YES;
task = GNUNET_SCHEDULER_add_now (&run_transfers,
NULL);
+ GNUNET_free (ctc->method);
+ GNUNET_free (ctc);
+ ctc = NULL;
+
return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
}
@@ -1326,9 +1330,9 @@ run_reserve_closures (void *cls)
NULL);
return;
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
+ (void) commit_or_warn (session);
if (GNUNET_YES == erc.async_cont)
break;
- (void) commit_or_warn (session);
task = GNUNET_SCHEDULER_add_now (&run_reserve_closures,
NULL);
return;
@@ -1831,7 +1835,7 @@ run_transfers (void *cls)
if (GNUNET_OK !=
db_plugin->start (db_plugin->cls,
session,
- "aggregator run transfer"))
+ "aggregator run transfer"))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to start database transaction!\n");