diff --git a/src/remote_pairing.c b/src/remote_pairing.c index 4bfd9f8b..99e0f7d8 100644 --- a/src/remote_pairing.c +++ b/src/remote_pairing.c @@ -884,6 +884,15 @@ remote_pairing_init(void) void remote_pairing_deinit(void) { + struct remote_info *ri; + + for (ri = remote_list; remote_list; ri = remote_list) + { + remote_list = ri->next; + + free_remote(ri); + } + close(pairing_pipe[0]); close(pairing_pipe[1]); }