diff options
author | banjiuqingshan <63209634+banjiuqingshan@users.noreply.github.com> | 2022-11-18 09:37:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 09:37:00 +0800 |
commit | 72cf6b7f0641245fde9aa4a2a786ca27de41c1ba (patch) | |
tree | eec167c03083b921ce7914ee52e7d9f8a2dce6b9 /tar/subst.c | |
parent | fa4b613f2e2510bd036f2eeed2fece97cd18b079 (diff) | |
download | libarchive-72cf6b7f0641245fde9aa4a2a786ca27de41c1ba.tar.gz |
use regfree to release the memory
use regfree() to release the memory requested by the regular expression.#1804
Diffstat (limited to 'tar/subst.c')
-rw-r--r-- | tar/subst.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tar/subst.c b/tar/subst.c index 39c54acf..55ad63dc 100644 --- a/tar/subst.c +++ b/tar/subst.c @@ -320,6 +320,7 @@ cleanup_substitution(struct bsdtar *bsdtar) while ((rule = subst->first_rule) != NULL) { subst->first_rule = rule->next; free(rule->result); + regfree(&rule->re); free(rule); } free(subst); |