summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c
index 8b2a04b..b96a279 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -3137,8 +3137,12 @@ cmd_fdump (int interactively, char *data)
/* FIXME: Oooh, gross! there's a trailing comma, yuk! */
list_for_each_entry (cur, &current_screen()->frames, node)
{
- sbuf_concat (s, frame_dump (cur));
+ char *tmp;
+
+ tmp = frame_dump (cur);
+ sbuf_concat (s, tmp);
sbuf_concat (s, ",");
+ free (tmp);
}
tmp = sbuf_get (s);