mirror of
https://github.com/tmux/tmux.git
synced 2025-04-01 21:41:44 +00:00
Memory leaks, from Igor Wong in GitHub issue 1934.
This commit is contained in:
parent
4e2cc0ae2a
commit
68d59a16ce
@ -696,6 +696,7 @@ cmd_parse_build_commands(struct cmd_parse_commands *cmds,
|
|||||||
pr.status = CMD_PARSE_ERROR;
|
pr.status = CMD_PARSE_ERROR;
|
||||||
pr.error = cmd_parse_get_error(pi->file, line, cause);
|
pr.error = cmd_parse_get_error(pi->file, line, cause);
|
||||||
free(cause);
|
free(cause);
|
||||||
|
cmd_list_free(cmdlist);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
cmd_list_append(cmdlist, add);
|
cmd_list_append(cmdlist, add);
|
||||||
|
@ -296,6 +296,7 @@ options_remove(struct options_entry *o)
|
|||||||
else
|
else
|
||||||
options_value_free(o, &o->value);
|
options_value_free(o, &o->value);
|
||||||
RB_REMOVE(options_tree, &oo->tree, o);
|
RB_REMOVE(options_tree, &oo->tree, o);
|
||||||
|
free((void *)o->name);
|
||||||
free(o);
|
free(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user