From 4a753dbefc2e67c218cf41141eaa6afab00f774a Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 23 Aug 2021 11:04:21 +0000 Subject: Fix a few memory leaks. --- spawn.c | 1 + 1 file changed, 1 insertion(+) (limited to 'spawn.c') 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); -- cgit