summaryrefslogtreecommitdiffstats
path: root/browser.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <e.giaquinta@glauco.it>2010-08-24 18:20:56 +0100
committerEmanuele Giaquinta <e.giaquinta@glauco.it>2010-08-24 18:20:56 +0100
commit19325b3362c2250cd93b7d5ca6f29e5903720019 (patch)
treeadc757f00baf9455d5e5f5f5dff9a49506202082 /browser.c
parentf35599a6487a9e9f209f14907a03c878dcc94314 (diff)
Do not call regfree if regcomp fails.
The content of the regex_t structure is undefined in this case.
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/browser.c b/browser.c
index 6f4a457f..3bb396e5 100644
--- a/browser.c
+++ b/browser.c
@@ -1085,7 +1085,6 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
if ((err = REGCOMP (rx, s, REG_NOSUB)) != 0)
{
regerror (err, rx, buf, sizeof (buf));
- regfree (rx);
FREE (&rx);
mutt_error ("%s", buf);
}