diff options
author | emanuele-f <faranda@ntop.org> | 2020-02-12 17:14:40 +0100 |
---|---|---|
committer | emanuele-f <faranda@ntop.org> | 2020-02-12 17:15:01 +0100 |
commit | 3fa61a394b7314e67c97888dd686ac84609a8b02 (patch) | |
tree | e1d7e775d434a0c36a25fd52062147989052bde4 /src | |
parent | 97fb50e837da46bac7bedeeb170cace6dd3a912c (diff) |
Fix little leak on the proto_defaults strdup
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 3b5d8e251..303497e62 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2503,7 +2503,7 @@ void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_str) { if(ndpi_str != NULL) { int i; - for(i=0; i<(int)ndpi_str->ndpi_num_supported_protocols; i++) { + for(i=0; i<(NDPI_MAX_SUPPORTED_PROTOCOLS+NDPI_MAX_NUM_CUSTOM_PROTOCOLS); i++) { if(ndpi_str->proto_defaults[i].protoName) ndpi_free(ndpi_str->proto_defaults[i].protoName); } |