Free old strings after they have been expanded in format_choose.

pull/1674/head
nicm 2019-03-29 09:33:24 +00:00
parent c6c4960b35
commit d68a17a1df
1 changed files with 2 additions and 0 deletions

View File

@ -1025,7 +1025,9 @@ format_choose(struct format_tree *ft, const char *s, char **left, char **right,
if (expand) {
*left = format_expand(ft, left0);
free(left0);
*right = format_expand(ft, right0);
free(right0);
} else {
*left = left0;
*right = right0;