commit 18c22e3e2e97111c9e3717cfe4ac67d397b0456c
parent 62b7bbabed24185b69d3336552844b161085830a
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Mon, 13 Jun 2016 23:40:00 +0200
fixing corrupted DLL (resulting from double call to json_decref())
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
@@ -168,6 +168,12 @@ struct Coin {
unsigned int refresh;
/**
+ * If the coin has to be refreshed, this value indicates
+ * how much is left on this coin
+ */
+ struct TALER_Amount left;
+
+ /**
* Refresh melt handle
*/
struct TALER_EXCHANGE_RefreshMeltHandle *rmh;
@@ -838,6 +844,9 @@ benchmark_run (void *cls)
json_decref (transfer_details);
}
json_decref (sender_details);
+ sender_details = NULL;
+ transfer_details = NULL;
+
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"benchmark_run() returns\n");
}