summaryrefslogtreecommitdiff
path: root/tar/subst.c
diff options
context:
space:
mode:
Diffstat (limited to 'tar/subst.c')
-rw-r--r--tar/subst.c1
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);