diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-13 13:51:04 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-13 13:51:23 -0500 |
commit | 36bf4d24cfa8be33cf39ab1c479963b2ed3a35db (patch) | |
tree | 1c7ff5c61ae35711cc8812de1c74c40399b5b0e4 | |
parent | c0f75f68b9e7bb71eb2792fb84e5ff34a8ecadbb (diff) |
Free last line in swaybar
-rw-r--r-- | swaybar/main.c | 1 |
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') { |