Re: [PATCH] src/actions.c: fix memory leak in cmd_groups()

Shawn <[email protected]>
Newsgroups gmane.comp.window-managers.ratpoison.devel
Message-ID <874p3kmaqb.fsf@juicebox.i-did-not-set--mail-host-address--so-tickle-me>
Ali Gholami Rudi <[email protected]> writes:

> ---
>  src/actions.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/actions.c b/src/actions.c
> index 4365679..9a3c453 100644
> --- a/src/actions.c
> +++ b/src/actions.c
> @@ -4816,6 +4816,7 @@ cmd_groups (int interactive, struct cmdarg **args)
>  
>        fmt = xsprintf ("%d%c%s", cur->number, separator, cur->name);
>        sbuf_concat (buffer, fmt);
> +      free (fmt);

Good eye! I've applied it to the repo.

-Shawn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.