Avoid a leak in expr's implementation of the ":" (match) operator.
authorJim Meyering <jim@meyering.net>
Thu, 11 Jan 2007 18:31:27 +0000 (19:31 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 11 Jan 2007 18:31:27 +0000 (19:31 +0100)
commit4e2fd4cca630e887cabf030d926ca21e9d842634
tree32510c51c1ce77b71fead6cea9fe093e714b596e
parentc6357f0cabfa46535285d5401cdf28d5d4469670
Avoid a leak in expr's implementation of the ":" (match) operator.
* src/expr.c (docolon): Free the regexp buffer using regfree, rather
than doing it manually, being careful to set fastmap to NULL first.
Free any re_regs.start and .end members, if necessary.
ChangeLog
src/expr.c