aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-25 14:51:31 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-25 14:51:31 +0100
commit85aa6d17c727a5899490aa82b0ece9ac95972c66 (patch)
tree166a80ac1f86a7732b8d502f2b9070b4d57e33f7 /src/exchange-lib
parent5052698cbc6692c922e75081af12ad24bf8c3e69 (diff)
fix misc. memory leaks
Diffstat (limited to 'src/exchange-lib')
-rw-r--r--src/exchange-lib/testing_api_cmd_batch.c1
-rw-r--r--src/exchange-lib/testing_api_cmd_refresh.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/exchange-lib/testing_api_cmd_batch.c b/src/exchange-lib/testing_api_cmd_batch.c
index 5269d0b8b..15b0413d7 100644
--- a/src/exchange-lib/testing_api_cmd_batch.c
+++ b/src/exchange-lib/testing_api_cmd_batch.c
@@ -97,6 +97,7 @@ batch_cleanup (void *cls,
bs->batch[i].cleanup (bs->batch[i].cls,
&bs->batch[i]);
GNUNET_free_non_null (bs->batch);
+ GNUNET_free (bs);
}
diff --git a/src/exchange-lib/testing_api_cmd_refresh.c b/src/exchange-lib/testing_api_cmd_refresh.c
index 50ea46785..85c1f8c95 100644
--- a/src/exchange-lib/testing_api_cmd_refresh.c
+++ b/src/exchange-lib/testing_api_cmd_refresh.c
@@ -465,6 +465,7 @@ refresh_reveal_cleanup (void *cls,
GNUNET_free_non_null (rrs->fresh_coins);
rrs->fresh_coins = NULL;
rrs->num_fresh_coins = 0;
+ GNUNET_free (rrs);
}
@@ -765,6 +766,7 @@ refresh_link_cleanup (void *cls,
GNUNET_SCHEDULER_cancel (rls->retry_task);
rls->retry_task = NULL;
}
+ GNUNET_free (rls);
}
@@ -1036,6 +1038,7 @@ refresh_melt_cleanup (void *cls,
GNUNET_free_non_null (rms->refresh_data);
rms->refresh_data = NULL;
rms->refresh_data_length = 0;
+ GNUNET_free (rms);
}