summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_loop.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-26 23:21:08 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-26 23:21:08 +0100
commitec8e3fad206fe1f355faa76193f7d891dad84791 (patch)
tree9827369304c3425f97ab99f109aa42558e2a10e8 /src/testing/testing_api_loop.c
parent5d843e2cf47dcdcd90e6033567687c5a6e508529 (diff)
downloadexchange-ec8e3fad206fe1f355faa76193f7d891dad84791.tar.gz
exchange-ec8e3fad206fe1f355faa76193f7d891dad84791.tar.bz2
exchange-ec8e3fad206fe1f355faa76193f7d891dad84791.zip
fix shutdown logic if shutdown happens during startup
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r--src/testing/testing_api_loop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index e9ccdb81c..5f30f71e9 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -693,6 +693,16 @@ do_abort (void *cls)
TALER_EXCHANGE_disconnect (is->exchange);
is->exchange = NULL;
}
+ if (NULL != is->ctx)
+ {
+ GNUNET_CURL_fini (is->ctx);
+ is->ctx = NULL;
+ }
+ if (NULL != is->rc)
+ {
+ GNUNET_CURL_gnunet_rc_destroy (is->rc);
+ is->rc = NULL;
+ }
}