sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 828060af73dd2f3138ad9d1bf743f57dd567723c
parent 69e0982439c096083d29667e8d2e2e25ef77cd61
Author: Mack Straight <eizneckam@gmail.com>
Date:   Mon, 31 Dec 2018 00:56:27 -0500

swaybar: fix double free

status->text should not be freed here. There are two scenarios:

* status->text has been set to an error by status_error. In this case
  the value shouldn't be freed because it's always a reference to a
  constant.
* status->text has been set to status->buffer because the bar is in
  text protocol mode. In this case it's a double free because the
  buffer is already freed after.

Diffstat:
Mswaybar/status_line.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/swaybar/status_line.c b/swaybar/status_line.c @@ -185,7 +185,6 @@ void status_line_free(struct status_line *status) { } free(status->read); free(status->write); - free((char*) status->text); free(status->buffer); free(status); }