From 068dbf020b1f762d4364ca378c1396d16fa6eb1a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 May 2016 16:07:17 +0200 Subject: reorg testcase a bit --- src/exchangedb/plugin_exchangedb_common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/exchangedb/plugin_exchangedb_common.c') diff --git a/src/exchangedb/plugin_exchangedb_common.c b/src/exchangedb/plugin_exchangedb_common.c index 631142e86..8bb214efb 100644 --- a/src/exchangedb/plugin_exchangedb_common.c +++ b/src/exchangedb/plugin_exchangedb_common.c @@ -154,8 +154,10 @@ common_free_melt_commitment (void *cls, { for (i=0;inum_newcoins;i++) { - GNUNET_free (mc->commit_coins[k][i].refresh_link); - GNUNET_free (mc->commit_coins[k][i].coin_ev); + /* NOTE: 'non_null' because this API is used also + internally to clean up the struct on failures! */ + GNUNET_free_non_null (mc->commit_coins[k][i].refresh_link); + GNUNET_free_non_null (mc->commit_coins[k][i].coin_ev); } GNUNET_free (mc->commit_coins[k]); } -- cgit v1.2.3