MCPcopy Create free account
hub / github.com/git/git / regfree

Function regfree

compat/regex/regcomp.c:657–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657
658/* Free dynamically allocated space used by PREG. */
659
660void
661regfree (regex_t *preg)
662{
663 re_dfa_t *dfa = (re_dfa_t *) preg->buffer;
664 if (BE (dfa != NULL, 1))
665 free_dfa_content (dfa);
666 preg->buffer = NULL;
667 preg->allocated = 0;
668
669 re_free (preg->fastmap);
670 preg->fastmap = NULL;
671
672 re_free (preg->translate);
673 preg->translate = NULL;
674}

Callers 15

config_store_data_clearFunction · 0.85
free_grep_patFunction · 0.85
xdiff_clear_find_funcFunction · 0.85
parse_locFunction · 0.85
parse_range_funcnameFunction · 0.85
diffcore_pickaxeFunction · 0.85
get_oid_onelineFunction · 0.85
cmd_mainFunction · 0.85
patch_update_fileFunction · 0.85
free_config_regexesFunction · 0.85
free_diff_words_dataFunction · 0.85

Calls 1

free_dfa_contentFunction · 0.85

Tested by 2

test_regex_bugFunction · 0.68
cmd__regexFunction · 0.68