mirror of
https://github.com/tmux/tmux.git
synced 2026-03-06 07:45:35 +00:00
Another memory leak from Huihui Huang.
This commit is contained in:
@@ -90,6 +90,7 @@ cmd_server_access_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
pw = getpwnam(name);
|
pw = getpwnam(name);
|
||||||
if (pw == NULL) {
|
if (pw == NULL) {
|
||||||
cmdq_error(item, "unknown user: %s", name);
|
cmdq_error(item, "unknown user: %s", name);
|
||||||
|
free(name);
|
||||||
return (CMD_RETURN_ERROR);
|
return (CMD_RETURN_ERROR);
|
||||||
}
|
}
|
||||||
free(name);
|
free(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user