[Fix] replace free to ndpi_free (#1140)

same as https://github.com/ntop/nDPI/issues/1096
This commit is contained in:
pengtian
2021-02-25 08:46:55 +01:00
committed by GitHub
parent 70c35addcb
commit 28330edb7a
+1 -1
View File
@@ -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;
}