aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-08-05 17:57:00 +0200
committerLuca Deri <deri@ntop.org>2020-08-05 17:57:00 +0200
commitd3fb1fb25a2b3ab37d4e1964f4fdde70d24349e1 (patch)
treebf264e004c15560cf3cf49c72cbda7ba4d87becf /example
parent07d9fa7f96d50aea4a1d8ed40330afa7d4944151 (diff)
Fixed possible memory leak in TLS certificate handling
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index c525346fa..03ab1df4a 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -3321,7 +3321,7 @@ static void dgaUnitTest() {
};
int i;
NDPI_PROTOCOL_BITMASK all;
- struct ndpi_detection_module_struct *ndpi_str = ndpi_init_detection_module(ndpi_no_prefs);
+ struct ndpi_detection_module_struct *ndpi_str = ndpi_init_detection_module(ndpi_no_prefs);
assert(ndpi_str != NULL);
@@ -3338,7 +3338,6 @@ static void dgaUnitTest() {
for(i=0; non_dga[i] != NULL; i++)
assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i]) == 0);
-
ndpi_exit_detection_module(ndpi_str);
}