summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-08-29 18:30:06 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-08-29 18:30:06 +0200
commit56933a90aa353fc366d6cdd2bdd58ca532f9b89e (patch)
tree5621a4e9a36ec7fe5ee83373611c27cff450a5bc /src
parent706de5704f4d61929bbbb87d8d667ba68fcffc7d (diff)
downloadouroboros-56933a90aa353fc366d6cdd2bdd58ca532f9b89e.tar.gz
ouroboros-56933a90aa353fc366d6cdd2bdd58ca532f9b89e.zip
ipcpd: Fix thread leaks in normal IPCP
Diffstat (limited to 'src')
-rw-r--r--src/ipcpd/normal/enroll.c2
-rw-r--r--src/ipcpd/normal/main.c2
2 files changed, 2 insertions, 2 deletions
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();