diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-10-23 14:43:11 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-23 14:43:11 +0900 |
commit | e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc (patch) | |
tree | fdcd0653f52fd14b9ec433a66dafcf8765bfd500 /grep.h | |
parent | d45d771978c3d5bead096934cad16ddfb9fced37 (diff) | |
parent | 10da030ab757c38a01507bf18e2484698000b791 (diff) | |
download | git-e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc.tar.gz |
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
Diffstat (limited to 'grep.h')
-rw-r--r-- | grep.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |