ratpoison-devel
[Top][All Lists]
Advanced

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

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


From: Ali Gholami Rudi
Subject: [RP] [PATCH] src/actions.c: fix memory leak in cmd_groups()
Date: Tue, 23 Sep 2008 17:19:54 +0330
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

---
 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);
 
       /* Pad end of group name with a space for row style. */
       if (defaults.window_list_style == STYLE_ROW && interactive)
-- 
1.5.6.2.291.g7eef3.dirty





reply via email to

[Prev in Thread] Current Thread [Next in Thread]