From 56933a90aa353fc366d6cdd2bdd58ca532f9b89e Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Tue, 29 Aug 2017 18:30:06 +0200 Subject: ipcpd: Fix thread leaks in normal IPCP --- src/ipcpd/normal/enroll.c | 2 -- src/ipcpd/normal/main.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ipcpd') diff --git a/src/ipcpd/normal/enroll.c b/src/ipcpd/normal/enroll.c index 7f93ed3a..fc541859 100644 --- a/src/ipcpd/normal/enroll.c +++ b/src/ipcpd/normal/enroll.c @@ -373,6 +373,4 @@ void enroll_stop(void) { if (enroll.state == ENROLL_RUNNING) pthread_cancel(enroll.listener); - - enroll.state = ENROLL_INIT; } diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c index 0a41f883..fa31b9be 100644 --- a/src/ipcpd/normal/main.c +++ b/src/ipcpd/normal/main.c @@ -399,6 +399,8 @@ int main(int argc, stop_components(); } + finalize_components(); + irm_unbind_api(getpid(), ipcpi.name); ipcp_fini(); -- cgit v1.2.3