stuff memory leak

This commit is contained in:
Sascha Kruse 2012-12-12 13:53:04 +01:00
parent d866bb0c35
commit 3af63f1ddc

View File

@ -569,7 +569,7 @@ void fill_line_cache(int width)
asprintf(&tmp, "(%d more)", queue_cnt); asprintf(&tmp, "(%d more)", queue_cnt);
ColorSet *last_colors = ColorSet *last_colors =
line_cache.lines[line_cache.count-1].colors; line_cache.lines[line_cache.count-1].colors;
r_line_cache_append(&line_cache, strdup(tmp), last_colors, false); r_line_cache_append(&line_cache, tmp, last_colors, false);
free(tmp); free(tmp);
} else { } else {
char *old = line_cache.lines[0].str; char *old = line_cache.lines[0].str;