Re: Regex code in libbalsa_scanner_imap_dir



On 2001-07-30 17:30 Peter Bloomfield wrote:
> I believe there's a problem in the regex code in
> libbalsa_scanner_imap_dir
> (libbalsa/folder-scanners.c):
> 
>     if(!FileMask.rx) {
>        FileMask.rx = (regex_t *) safe_malloc (sizeof (regex_t));
>        if( (i=REGCOMP(FileMask.rx,"!^\\.[^.]",0)) != 0) {
>            g_warning("FileMask regexp compilation failed with
> code%i.",
>                      i);
>            safe_free((void**)&FileMask.rx);
>            return;
>        }
>     }
> ...
>     regfree(FileMask.rx);
>     libbalsa_unlock_mutt();

Correct. This regfree above is wrong. I will fix the sources.

/Pawel

-- 
Pawel Salek (pawsa@theochem.kth.se) http://www.theochem.kth.se/~pawsa/
Theoretical Chemistry Division, KTH voice: +46 8 790-8202




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]