summaryrefslogtreecommitdiff
path: root/conf/conf.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-08-31 19:39:44 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-09-13 18:06:16 +0200
commitfb72dc351a5abdfe9430b6c96b3049b71af29a48 (patch)
tree2bca4ebf4db301c645e3a0e97dd24196c86565f8 /conf/conf.c
parent729bcadb9fe79f5a7a1cf98aa04f411b1398c324 (diff)
WIP cleanup proto listold/wireguard-android
Diffstat (limited to 'conf/conf.c')
-rw-r--r--conf/conf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/conf/conf.c b/conf/conf.c
index b21d5213..4e0e6e04 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -282,7 +282,15 @@ static void
config_done(void *unused UNUSED)
{
if (config->shutdown)
- sysdep_shutdown_done();
+ {
+ /* Clean up from bt-utils.c */
+ for (int i = 0; i < PROTOCOL__MAX; i++)
+ class_to_protocol[i] = NULL;
+
+ config = new_config = NULL;
+
+ sysdep_shutdown_done();
+ }
configuring = 0;
if (old_config)