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, 2 insertions, 1 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 3c81d1db..a577ca80 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1369,7 +1369,8 @@ void ipcp_flow_fini(int fd)
pthread_rwlock_unlock(&ai.lock);
- shm_rbuff_fini(rx_rb);
+ if (rx_rb != NULL)
+ shm_rbuff_fini(rx_rb);
}
int ipcp_flow_get_qoscube(int fd,