summaryrefslogtreecommitdiffstats
path: root/spawn.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-23 11:04:21 +0000
committernicm <nicm>2021-08-23 11:04:21 +0000
commit4a753dbefc2e67c218cf41141eaa6afab00f774a (patch)
tree6a52781c86c30894be0e2161c31154b3bdf953a0 /spawn.c
parent3ed37a207988bc6e96dc673ae4564a4efd682ea6 (diff)
Fix a few memory leaks.
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spawn.c b/spawn.c
index 98b70312..294eb50f 100644
--- a/spawn.c
+++ b/spawn.c
@@ -179,6 +179,7 @@ spawn_window(struct spawn_context *sc, char **cause)
/* Set the name of the new window. */
if (~sc->flags & SPAWN_RESPAWN) {
+ free(w->name);
if (sc->name != NULL) {
w->name = format_single(item, sc->name, c, s, NULL,
NULL);