diff options
author | Ivan Nardi <nardi.ivan@gmail.com> | 2025-06-09 09:30:30 +0200 |
---|---|---|
committer | Ivan Nardi <nardi.ivan@gmail.com> | 2025-06-09 09:30:30 +0200 |
commit | bcfa3f5477c892eb53daa1d8b94f665b787bf23d (patch) | |
tree | ef59a66477f5111bcddf13bc7d5cbe1f2c65cad0 /src | |
parent | cbd7136b3480774a10f18744d33d3694ffee221b (diff) |
Rename `ndpi_bitmask_dealloc` into `ndpi_bitmask_free`
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_api.h | 2 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 12 | ||||
-rw-r--r-- | src/lib/ndpi_utils.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index e8b1b06b5..d671870ca 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -2443,7 +2443,7 @@ extern "C" { int ndpi_bitmask_alloc(struct ndpi_bitmask *b, u_int16_t max_bits); - void ndpi_bitmask_dealloc(struct ndpi_bitmask *b); + void ndpi_bitmask_free(struct ndpi_bitmask *b); void ndpi_bitmask_set(struct ndpi_bitmask *b, u_int16_t bit); void ndpi_bitmask_clear(struct ndpi_bitmask *b, u_int16_t bit); int ndpi_bitmask_is_set(const struct ndpi_bitmask *b, u_int16_t bit); diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 72b40d198..9089f525b 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4868,14 +4868,14 @@ void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_str) { if(ndpi_str != NULL) { unsigned int i; - ndpi_bitmask_dealloc(ndpi_str->detection_bitmask); + ndpi_bitmask_free(ndpi_str->detection_bitmask); ndpi_free(ndpi_str->detection_bitmask); - ndpi_bitmask_dealloc(&ndpi_str->cfg.debug_bitmask); - ndpi_bitmask_dealloc(&ndpi_str->cfg.ip_list_bitmask); - ndpi_bitmask_dealloc(&ndpi_str->cfg.monitoring); - ndpi_bitmask_dealloc(&ndpi_str->cfg.flowrisk_bitmask); - ndpi_bitmask_dealloc(&ndpi_str->cfg.flowrisk_info_bitmask); + ndpi_bitmask_free(&ndpi_str->cfg.debug_bitmask); + ndpi_bitmask_free(&ndpi_str->cfg.ip_list_bitmask); + ndpi_bitmask_free(&ndpi_str->cfg.monitoring); + ndpi_bitmask_free(&ndpi_str->cfg.flowrisk_bitmask); + ndpi_bitmask_free(&ndpi_str->cfg.flowrisk_info_bitmask); for (i = 0; i < ndpi_str->proto_defaults_num_allocated; i++) { if(ndpi_str->proto_defaults[i].protoName) diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 7ea53922f..230c3bdeb 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -4460,7 +4460,7 @@ int ndpi_bitmask_alloc(struct ndpi_bitmask *b, u_int16_t max_bits) return 0; } -void ndpi_bitmask_dealloc(struct ndpi_bitmask *b) +void ndpi_bitmask_free(struct ndpi_bitmask *b) { if(b) { ndpi_free(b->fds); |