summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-22 16:18:58 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-22 16:18:58 +0200
commit4bb18901fa222dc686886e7736e9935cfa1a4672 (patch)
tree9eda13e1fbe9a74836679f7b26d889a4e5448b2a
parent2bc5cafc514ab92c389ce0d7dd376f89dfa7bb8e (diff)
downloadouroboros-4bb18901fa222dc686886e7736e9935cfa1a4672.tar.gz
ouroboros-4bb18901fa222dc686886e7736e9935cfa1a4672.zip
lib: Fix closing applications with active flows
The rdrbuff was previously closed before the remaining SDUs were removed.
-rw-r--r--src/lib/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 41841988..cac3ca37 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -276,7 +276,6 @@ void ap_fini()
bmp_destroy(ai.fds);
bmp_destroy(ai.fqueues);
shm_flow_set_destroy(ai.fqset);
- shm_rdrbuff_close(ai.rdrb);
if (ai.daf_name != NULL)
free(ai.daf_name);
@@ -303,6 +302,8 @@ void ap_fini()
pthread_cond_destroy(&ai.ports[i].state_cond);
}
+ shm_rdrbuff_close(ai.rdrb);
+
free(ai.flows);
free(ai.ports);