aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorpengtian <pengtianabc@hotmail.com>2021-02-25 15:46:55 +0800
committerGitHub <noreply@github.com>2021-02-25 08:46:55 +0100
commit28330edb7ae0fb3f6eef95b965666368486ac3e1 (patch)
treeacb22953e77f741a204b6fb5a6835507dc3a045d /src/lib/ndpi_main.c
parent70c35addcb979ac2d7cd18c45a79a2740045860a (diff)
[Fix] replace free to ndpi_free (#1140)
same as https://github.com/ntop/nDPI/issues/1096
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c2
1 files changed, 1 insertions, 1 deletions
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;
}