aboutsummaryrefslogtreecommitdiff
path: root/grammar.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-10 00:24:24 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-10 00:24:24 -0800
commitf4a7b80b4ff63d6610142b417cbadd6526339ae4 (patch)
tree1da87124f2fa4b935aa17eb25da100475ae49ff3 /grammar.c
parent9d1f51c483578c66d401a59f59ad18add0e1a52f (diff)
Updated more things to use xfree(&foo) instead of free(foo)
Diffstat (limited to 'grammar.c')
-rw-r--r--grammar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammar.c b/grammar.c
index f287f46..b980196 100644
--- a/grammar.c
+++ b/grammar.c
@@ -119,8 +119,8 @@ void pop_backrefs(grammar_t *g, size_t count)
backref_t *b = g->firstbackref;
g->firstbackref = b->next;
check(b, "Attempt to pop %ld more backrefs than there are", count);
- xfree((void**)&b->op);
- xfree((void**)&b);
+ xfree(&b->op);
+ xfree(&b);
}
}