summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-30 09:26:46 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-30 09:27:32 +0100
commitd59595fb94c7198c54bbd584f2d6c1faecd87fec (patch)
tree64f84eb80c3078ece62e3afe945986732470b912 /src/lib
parent64c8f8f3371799b8e818569666fd85e723c84d3a (diff)
downloadouroboros-d59595fb94c7198c54bbd584f2d6c1faecd87fec.tar.gz
ouroboros-d59595fb94c7198c54bbd584f2d6c1faecd87fec.zip
lib: Free fd when deallocating a flow
Fixes a little bug that sneaked in with the revised deallocation.
Diffstat (limited to 'src/lib')
-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);