Fixes for memory leaks reported by Lu Ming Yin, fixes from Howard Chu.

This commit is contained in:
nicm
2024-04-15 08:19:55 +00:00
parent 553d4cba79
commit e8530c9fee
4 changed files with 9 additions and 2 deletions

View File

@ -230,7 +230,7 @@ layout_parse(struct window *w, const char *layout, char **cause)
/* Check the new layout. */
if (!layout_check(lc)) {
*cause = xstrdup("size mismatch after applying layout");
return (-1);
goto fail;
}
/* Resize to the layout size. */