diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2020-06-23 19:32:33 +0200 |
---|---|---|
committer | Nardi Ivan <nardi.ivan@gmail.com> | 2020-06-28 12:05:12 +0200 |
commit | b24f5c4c0af2df8fd519e79cbcdf699a3b7c38bd (patch) | |
tree | 3bd5d9981e9d8ad4469c4aa5954e970aab254cfa /example/reader_util.h | |
parent | d6a97219ea14f0eb4d7d0831d4aefc971878caae (diff) |
Fix memory leak about purged/expired flows
Create an helper to avoid similar errors in the future
Fixes: 1a62f4c7
Diffstat (limited to 'example/reader_util.h')
-rw-r--r-- | example/reader_util.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/example/reader_util.h b/example/reader_util.h index d49ba6392..c94998496 100644 --- a/example/reader_util.h +++ b/example/reader_util.h @@ -329,9 +329,8 @@ static inline void ndpi_workflow_set_flow_giveup_callback(struct ndpi_workflow * int ndpi_workflow_node_cmp(const void *a, const void *b); void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_flow_info *flow); u_int32_t ethernet_crc32(const void* data, size_t n_bytes); +void ndpi_flow_info_free_data(struct ndpi_flow_info *flow); void ndpi_flow_info_freer(void *node); -void ndpi_free_flow_data_analysis(struct ndpi_flow_info *flow); -void ndpi_free_flow_tls_data(struct ndpi_flow_info *flow); const char* print_cipher_id(u_int32_t cipher); float ndpi_flow_get_byte_count_entropy(const uint32_t byte_count[256], unsigned int num_bytes); |