diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-10-30 08:50:23 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-10-30 08:50:23 +0000 |
commit | 72eb9eed1284643db20c45ef82365fa54fd0ef1c (patch) | |
tree | 64f84eb80c3078ece62e3afe945986732470b912 | |
parent | 64c8f8f3371799b8e818569666fd85e723c84d3a (diff) | |
parent | d59595fb94c7198c54bbd584f2d6c1faecd87fec (diff) | |
download | ouroboros-72eb9eed1284643db20c45ef82365fa54fd0ef1c.tar.gz ouroboros-72eb9eed1284643db20c45ef82365fa54fd0ef1c.zip |
Merged in dstaesse/ouroboros/be-dealloc (pull request #292)
lib: Free fd when deallocating a flow
-rw-r--r-- | src/lib/dev.c | 1 |
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); |