summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-05-20 21:33:27 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-05-20 21:33:27 +0200
commitd53fd8ef0228f287568cc51b87733780591308fc (patch)
tree8aaed1649a5660f507bfc2b101f1f9760f1ded33 /src/lib/dev.c
parenta5df21fd010d98e8f9f51ccd2aeae03a726e94b5 (diff)
parent3706cc5d75c2005dda3d1ceaee8f648db5970a25 (diff)
downloadouroboros-d53fd8ef0228f287568cc51b87733780591308fc.tar.gz
ouroboros-d53fd8ef0228f287568cc51b87733780591308fc.zip
Merged in dstaesse/ouroboros/be-fix-segfaults (pull request #102)
fixes segfaults in dev.c and in shim-udp
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index fab37bbf..63cf92f7 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -137,10 +137,9 @@ void ap_fini(void)
shm_ap_rbuff_close(_ap_instance->flows[i].rb);
rw_lock_unlock(&_ap_instance->flows_lock);
+ rw_lock_unlock(&_ap_instance->data_lock);
free(_ap_instance);
-
- rw_lock_unlock(&_ap_instance->data_lock);
}
#if 0