From 36bf4d24cfa8be33cf39ab1c479963b2ed3a35db Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 13 Dec 2015 13:51:04 -0500 Subject: [PATCH] Free last line in swaybar --- swaybar/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/swaybar/main.c b/swaybar/main.c index e4a97e690..e252a2db4 100644 --- a/swaybar/main.c +++ b/swaybar/main.c @@ -79,6 +79,7 @@ void cairo_set_source_u32(cairo_t *cairo, uint32_t color) { void update() { if (!feof(command)) { + free(line); line = read_line(command); int l = strlen(line) - 1; if (line[l] == '\n') {