From 3af63f1ddc520f94c7267cc177ca77b43ee5361b Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Wed, 12 Dec 2012 13:53:04 +0100 Subject: [PATCH] stuff memory leak --- dunst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunst.c b/dunst.c index 2d9d4ae..8f9e95b 100644 --- a/dunst.c +++ b/dunst.c @@ -569,7 +569,7 @@ void fill_line_cache(int width) asprintf(&tmp, "(%d more)", queue_cnt); ColorSet *last_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); } else { char *old = line_cache.lines[0].str;