summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-08 16:07:17 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-08 16:07:17 +0200
commit068dbf020b1f762d4364ca378c1396d16fa6eb1a (patch)
treea49373ea045d86dfadfbc7240617fe6213143a21 /src/exchangedb/plugin_exchangedb_common.c
parentffb38f292e4757e152180d4d7a9c870c7e0482e6 (diff)
downloadexchange-068dbf020b1f762d4364ca378c1396d16fa6eb1a.tar.gz
exchange-068dbf020b1f762d4364ca378c1396d16fa6eb1a.tar.bz2
exchange-068dbf020b1f762d4364ca378c1396d16fa6eb1a.zip
reorg testcase a bit
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_common.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_common.c6
1 files changed, 4 insertions, 2 deletions
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;i<mc->num_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]);
}