summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/shim-udp')
-rw-r--r--src/ipcpd/shim-udp/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index 3ef783c4..1284a0e5 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -189,10 +189,9 @@ void shim_ap_fini()
shm_ap_rbuff_close(_ap_instance->flows[i].rb);
rw_lock_unlock(&_ap_instance->flows_lock);
+ rw_lock_unlock(&_ipcp->state_lock);
free(_ap_instance);
-
- rw_lock_unlock(&_ipcp->state_lock);
}
/* only call this under flows_lock */