aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swaybar/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index e4a97e69..e252a2db 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') {