mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
xfree is not particularly helpful, remove it. From Thomas Adam.
This commit is contained in:
@ -59,7 +59,7 @@ cmd_rename_session_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
return (-1);
|
||||
|
||||
RB_REMOVE(sessions, &sessions, s);
|
||||
xfree(s->name);
|
||||
free(s->name);
|
||||
s->name = xstrdup(newname);
|
||||
RB_INSERT(sessions, &sessions, s);
|
||||
|
||||
|
Reference in New Issue
Block a user