summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-30 08:50:23 +0000
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-30 08:50:23 +0000
commit72eb9eed1284643db20c45ef82365fa54fd0ef1c (patch)
tree64f84eb80c3078ece62e3afe945986732470b912 /src/lib/dev.c
parent64c8f8f3371799b8e818569666fd85e723c84d3a (diff)
parentd59595fb94c7198c54bbd584f2d6c1faecd87fec (diff)
downloadouroboros-72eb9eed1284643db20c45ef82365fa54fd0ef1c.tar.gz
ouroboros-72eb9eed1284643db20c45ef82365fa54fd0ef1c.zip
Merged in dstaesse/ouroboros/be-dealloc (pull request #292)
lib: Free fd when deallocating a flow
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 3d527943..ec1cd696 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -671,6 +671,7 @@ int flow_dealloc(int fd)
pthread_rwlock_wrlock(&ai.flows_lock);
reset_flow(fd);
+ bmp_release(ai.fds, fd);
pthread_rwlock_unlock(&ai.flows_lock);
pthread_rwlock_unlock(&ai.data_lock);