summaryrefslogtreecommitdiff
path: root/nDPIsrvd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r--nDPIsrvd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nDPIsrvd.c b/nDPIsrvd.c
index 4e48c9ca1..c5d2e2a4e 100644
--- a/nDPIsrvd.c
+++ b/nDPIsrvd.c
@@ -477,6 +477,10 @@ static void disconnect_client(int epollfd, struct remote_desc * const current)
current->fd = -1;
remotes.desc_used--;
}
+ if (current->buf_cache != NULL)
+ {
+ utarray_clear(current->buf_cache);
+ }
nDPIsrvd_buffer_free(&current->buf);
}