aboutsummaryrefslogtreecommitdiff
path: root/contrib/libarchive/tar/subst.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libarchive/tar/subst.c')
-rw-r--r--contrib/libarchive/tar/subst.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/libarchive/tar/subst.c b/contrib/libarchive/tar/subst.c
index 48370b2fceeb..7f3d1819984f 100644
--- a/contrib/libarchive/tar/subst.c
+++ b/contrib/libarchive/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);