mirror of https://github.com/tmux/tmux.git
Fix memory leak, from Gabriel Souza Franco.
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