From 28330edb7ae0fb3f6eef95b965666368486ac3e1 Mon Sep 17 00:00:00 2001 From: pengtian Date: Thu, 25 Feb 2021 15:46:55 +0800 Subject: [Fix] replace free to ndpi_free (#1140) same as https://github.com/ntop/nDPI/issues/1096 --- src/lib/ndpi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index bb6884d1a..f5f964f8b 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -506,7 +506,7 @@ static int ndpi_string_to_automa(struct ndpi_detection_module_struct *ndpi_str, len = ndpi_min(len, mlen); ac_pattern.length = snprintf(buf, mlen, "%s$", value); - free(value); + ndpi_free(value); value = ndpi_strdup(buf); ac_pattern.astring = value; } -- cgit v1.2.3