Avoid a leak in expr's implementation of the ":" (match) operator.
commit4e2fd4cca630e887cabf030d926ca21e9d842634
authorJim Meyering <jim@meyering.net>
Thu, 11 Jan 2007 18:31:27 +0000 (11 19:31 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 11 Jan 2007 18:31:27 +0000 (11 19:31 +0100)
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