summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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