summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd-new-window.c2
-rw-r--r--cmd-split-window.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index 2d409399..c906d4d2 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -133,7 +133,7 @@ cmd_new_window_exec(struct cmd *self, struct cmd_ctx *ctx)
cp = format_expand(ft, template);
ctx->print(ctx, "%s", cp);
- free(cp);
+ xfree(cp);
format_free(ft);
}
diff --git a/cmd-split-window.c b/cmd-split-window.c
index 5addd107..08a371c9 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -152,7 +152,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx)
cp = format_expand(ft, template);
ctx->print(ctx, "%s", cp);
- free(cp);
+ xfree(cp);
format_free(ft);
}