fix memory leak and add framework test

This commit is contained in:
liuwentan
2022-11-29 14:12:40 +08:00
parent 7e6d131c9e
commit 84a271144b
19 changed files with 321 additions and 56 deletions

View File

@@ -32,7 +32,7 @@ enum scan_mode {
/* pattern type: PATTERN_TYPE_STR(pure literal string) or PATTERN_TYPE_REG(regex expression) */
enum pattern_type {
PATTERN_TYPE_STR = 1,
PATTERN_TYPE_STR = 0,
PATTERN_TYPE_REG,
};