mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Memory leak in error path and unnecessary assignment, from clang.
This commit is contained in:
parent
871b83cbab
commit
5acee1c04e
3 changed files with 2 additions and 3 deletions
2
grid.c
2
grid.c
|
|
@ -624,7 +624,7 @@ grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx,
|
|||
off += size;
|
||||
}
|
||||
|
||||
if (trim) {
|
||||
if (trim) {
|
||||
while (off > 0 && buf[off - 1] == ' ')
|
||||
off--;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue