On Thu 18.Mar'10 at 17:06:59 +0100, Tamas TEVESZ wrote:
> 
> this seems to be in order.

AFAICS in the rest of that function, it would leak in the 'else' case.
Applied to #next, thanks!

> --- a/src/dialog.c
> +++ b/src/dialog.c
> @@ -289,10 +289,10 @@ static WMArray *GenerateVariants(const char *complete)
>               if (*tmp == '~' && *(tmp + 1) == '/' && getenv("HOME")) {
>                       dir = wstrdup(getenv("HOME"));
>                       dir = wstrappend(dir, tmp + 1);
> -                     wfree(tmp);
>               } else {
>                       dir = tmp;
>               }
> +             wfree(tmp);
>               prefix = wstrdup(pos + 1);
>               ScanFiles(dir, prefix, (unsigned)-1, 0, variants);
>               wfree(dir);



-- 
To unsubscribe, send mail to [email protected].

Reply via email to