Merge branch 'cb/pcre2-chartables-leakfix'
Leakfix. * cb/pcre2-chartables-leakfix: grep: avoid leak of chartables in PCRE2 grep: make PCRE2 aware of custom allocator grep: make PCRE1 aware of custom allocator
This commit is contained in:
2
grep.h
2
grep.h
@ -78,6 +78,7 @@ struct grep_pat {
|
||||
pcre2_code *pcre2_pattern;
|
||||
pcre2_match_data *pcre2_match_data;
|
||||
pcre2_compile_context *pcre2_compile_context;
|
||||
const uint8_t *pcre2_tables;
|
||||
uint32_t pcre2_jit_on;
|
||||
unsigned fixed:1;
|
||||
unsigned is_fixed:1;
|
||||
@ -172,6 +173,7 @@ struct grep_opt {
|
||||
void init_grep_defaults(struct repository *);
|
||||
int grep_config(const char *var, const char *value, void *);
|
||||
void grep_init(struct grep_opt *, struct repository *repo, const char *prefix);
|
||||
void grep_destroy(void);
|
||||
void grep_commit_pattern_type(enum grep_pattern_type, struct grep_opt *opt);
|
||||
|
||||
void append_grep_pat(struct grep_opt *opt, const char *pat, size_t patlen, const char *origin, int no, enum grep_pat_token t);
|
||||
|
Reference in New Issue
Block a user