diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-08 16:07:17 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-08 16:07:17 +0200 |
commit | 068dbf020b1f762d4364ca378c1396d16fa6eb1a (patch) | |
tree | a49373ea045d86dfadfbc7240617fe6213143a21 /src/exchangedb/plugin_exchangedb_common.c | |
parent | ffb38f292e4757e152180d4d7a9c870c7e0482e6 (diff) |
reorg testcase a bit
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_common.c')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_common.c | 6 |
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]); } |