diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-01-26 15:38:43 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-01-26 15:38:43 +0100 |
commit | 7022d0b1c57b4b6233fc2bd89d03328a5f90208e (patch) | |
tree | 5c3103a28f96fa1c6bcb8a0429933410021b5f16 /nDPIsrvd.c | |
parent | 80e1eedbeffc697b759bc41e4a1865a99d4e1fbd (diff) |
nDPIsrvd: Fixed memory leak caused be not clearing buffer cache after a client disconnected.
* README.md: Fixed a typ0 and added a meh image from examples/py-flow-dashboard/flow-dash.py
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r-- | nDPIsrvd.c | 4 |
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(¤t->buf); } |