diff options
author | Toni <matzeton@googlemail.com> | 2023-05-20 16:18:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-20 16:18:52 +0200 |
commit | 5e8f93c2d157b4af818bc80b2737ee17e920e8e9 (patch) | |
tree | fe4b1c70eb91dacfc139388c5e33dda0d3499b16 /src/lib/ndpi_utils.c | |
parent | 8f718c90519171e09e4e9877bf3c59cc6343c794 (diff) |
Improved missing usage of nDPIs malloc wrapper. Fixes #1978. (#1979)
* added CI check
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 8020ea540..c527cefb1 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1738,7 +1738,7 @@ static void ndpi_compile_rce_regex() { #endif } - free((void *)pcreErrorStr); + ndpi_free((void *)pcreErrorStr); } static int ndpi_is_rce_injection(char* query) { @@ -2253,7 +2253,7 @@ void ndpi_hash_free(ndpi_str_hash **h, void (*cleanup_func)(ndpi_str_hash *h)) { cleanup_func((ndpi_str_hash *)current); } - free(current); + ndpi_free(current); } *h = NULL; @@ -2415,7 +2415,7 @@ static void ndpi_handle_risk_exceptions(struct ndpi_detection_module_struct *ndp */ for(i=0; i<flow->num_risk_infos; i++) { if(flow->risk_infos[i].info != NULL) { - free(flow->risk_infos[i].info); + ndpi_free(flow->risk_infos[i].info); flow->risk_infos[i].info = NULL; } } |