mirror of
https://github.com/tmux/tmux.git
synced 2025-04-01 21:41:44 +00:00
Fix memory leak, from Gabriel Souza Franco.
This commit is contained in:
parent
1afe22086f
commit
3c65475561
4
format.c
4
format.c
@ -3564,12 +3564,12 @@ found:
|
||||
}
|
||||
if (modifiers & FORMAT_QUOTE_SHELL) {
|
||||
saved = found;
|
||||
found = xstrdup(format_quote_shell(saved));
|
||||
found = format_quote_shell(saved);
|
||||
free(saved);
|
||||
}
|
||||
if (modifiers & FORMAT_QUOTE_STYLE) {
|
||||
saved = found;
|
||||
found = xstrdup(format_quote_style(saved));
|
||||
found = format_quote_style(saved);
|
||||
free(saved);
|
||||
}
|
||||
return (found);
|
||||
|
Loading…
Reference in New Issue
Block a user