summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dt.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-08-23 19:38:57 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-08-23 19:38:57 +0200
commit47bd452352389925188ca4d36ae1c1ba611e6aeb (patch)
tree8a307b5138b18dba0ed277d4deb85a8ca8e64347 /src/ipcpd/normal/dt.c
parent1ca26ab86712575a5e89dcd68295b57fd27c5703 (diff)
downloadouroboros-47bd452352389925188ca4d36ae1c1ba611e6aeb.tar.gz
ouroboros-47bd452352389925188ca4d36ae1c1ba611e6aeb.zip
lib, ipcpd, irmd: Fix several memleaks
This fixes several memleaks as reported by valgrind. It also fixes some calls to close() with -1.
Diffstat (limited to 'src/ipcpd/normal/dt.c')
-rw-r--r--src/ipcpd/normal/dt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipcpd/normal/dt.c b/src/ipcpd/normal/dt.c
index 173266f4..f4ab2440 100644
--- a/src/ipcpd/normal/dt.c
+++ b/src/ipcpd/normal/dt.c
@@ -252,6 +252,10 @@ void dt_fini(void)
{
int i;
+ bmp_destroy(dt.res_fds);
+
+ pthread_rwlock_destroy(&dt.lock);
+
for (i = 0; i < QOS_CUBE_MAX; ++i)
routing_i_destroy(dt.routing[i]);