[Fix] replace free to ndpi_free (#1140)
same as https://github.com/ntop/nDPI/issues/1096
This commit is contained in:
+1
-1
@@ -506,7 +506,7 @@ static int ndpi_string_to_automa(struct ndpi_detection_module_struct *ndpi_str,
|
|||||||
|
|
||||||
len = ndpi_min(len, mlen);
|
len = ndpi_min(len, mlen);
|
||||||
ac_pattern.length = snprintf(buf, mlen, "%s$", value);
|
ac_pattern.length = snprintf(buf, mlen, "%s$", value);
|
||||||
free(value);
|
ndpi_free(value);
|
||||||
value = ndpi_strdup(buf);
|
value = ndpi_strdup(buf);
|
||||||
ac_pattern.astring = value;
|
ac_pattern.astring = value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user