diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-04-15 08:35:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 08:35:28 +0200 |
commit | d3b4b81d6fd9adc5bbe6c04e45d51989bacd4102 (patch) | |
tree | 2595f332953f42ed337db40f3268c435a4767da4 /example/reader_util.c | |
parent | d665df64e297051cd5b48605974846fa7076d883 (diff) | |
parent | e84563f9710ca1996eb7428a22a058527e604431 (diff) |
Merge pull request #867 from IvanNardi/memory-leaks
Memory leaks
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index dd1a15d2f..97aa940bd 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -456,6 +456,14 @@ void ndpi_flow_info_freer(void *node) { ndpi_free_flow_info_half(flow); ndpi_free_flow_data_analysis(flow); + ndpi_free_flow_tls_data(flow); + + ndpi_free(flow); +} + +/* ***************************************************** */ + +void ndpi_free_flow_tls_data(struct ndpi_flow_info *flow) { if(flow->ssh_tls.server_names) { ndpi_free(flow->ssh_tls.server_names); @@ -471,8 +479,6 @@ void ndpi_flow_info_freer(void *node) { ndpi_free(flow->ssh_tls.tls_supported_versions); flow->ssh_tls.tls_supported_versions = NULL; } - - ndpi_free(flow); } /* ***************************************************** */ |