Fix double free after b19bfa1e20
This commit is contained in:
+1
@@ -63,6 +63,7 @@ typedef struct
|
||||
{
|
||||
AC_ALPHABET_t * astring; /* String of alphabets */
|
||||
unsigned int length; /* Length of pattern */
|
||||
u_int8_t is_existing; /* 1 if the node is already part of another AC_PATTERN_t */
|
||||
AC_REP_t rep; /* Representative string (optional) */
|
||||
} AC_PATTERN_t;
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -55,7 +55,7 @@ struct edge
|
||||
|
||||
AC_NODE_t * node_create (void);
|
||||
AC_NODE_t * node_create_next (AC_NODE_t * thiz, AC_ALPHABET_t alpha);
|
||||
void node_register_matchstr (AC_NODE_t * thiz, AC_PATTERN_t * str);
|
||||
void node_register_matchstr (AC_NODE_t * thiz, AC_PATTERN_t * str, u_int8_t is_existing);
|
||||
void node_register_outgoing (AC_NODE_t * thiz, AC_NODE_t * next, AC_ALPHABET_t alpha);
|
||||
AC_NODE_t * node_find_next (AC_NODE_t * thiz, AC_ALPHABET_t alpha);
|
||||
AC_NODE_t * node_findbs_next (AC_NODE_t * thiz, AC_ALPHABET_t alpha);
|
||||
|
||||
Reference in New Issue
Block a user