diff options
author | Emanuele Giaquinta <e.giaquinta@glauco.it> | 2010-08-24 18:20:56 +0100 |
---|---|---|
committer | Emanuele Giaquinta <e.giaquinta@glauco.it> | 2010-08-24 18:20:56 +0100 |
commit | 19325b3362c2250cd93b7d5ca6f29e5903720019 (patch) | |
tree | adc757f00baf9455d5e5f5f5dff9a49506202082 /menu.c | |
parent | f35599a6487a9e9f209f14907a03c878dcc94314 (diff) |
Do not call regfree if regcomp fails.
The content of the regex_t structure is undefined in this case.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -749,7 +749,6 @@ static int menu_search (MUTTMENU *menu, int op) if ((r = REGCOMP (&re, searchBuf, REG_NOSUB | mutt_which_case (searchBuf))) != 0) { regerror (r, &re, buf, sizeof (buf)); - regfree (&re); mutt_error ("%s", buf); return (-1); } |