mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 08:18:48 +00:00
Memory leak from David CARLIER.
This commit is contained in:
parent
ae1a6c2fc5
commit
1e0eb914d9
1
status.c
1
status.c
@ -1497,6 +1497,7 @@ status_prompt_complete(struct session *session, const char *s)
|
|||||||
out = status_prompt_complete_prefix(list, size);
|
out = status_prompt_complete_prefix(list, size);
|
||||||
if (out != NULL) {
|
if (out != NULL) {
|
||||||
xasprintf(&tmp, "-%c%s%s", copy[1], out, colon);
|
xasprintf(&tmp, "-%c%s%s", copy[1], out, colon);
|
||||||
|
free(out);
|
||||||
out = tmp;
|
out = tmp;
|
||||||
goto found;
|
goto found;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user