mirror of
https://github.com/tmux/tmux.git
synced 2026-10-16 08:24:23 +00:00
Memory leak fixes from someone in GitHub issues 5739, 5744, 5745, 5746.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tty-term.c,v 1.113 2026/10/14 12:33:46 nicm Exp $ */
|
||||
/* $OpenBSD: tty-term.c,v 1.114 2026/10/15 08:21:11 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -412,6 +412,8 @@ tty_term_apply(struct tty_term *term, const char *capabilities, int quiet,
|
||||
continue;
|
||||
|
||||
if (remove) {
|
||||
if (code->type == TTYCODE_STRING)
|
||||
free(code->value.string);
|
||||
code->type = TTYCODE_NONE;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user