From a7bae0341d48cc5032e59f2c5660c01a9c0dac91 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Tue, 26 Sep 2017 12:30:03 +0300 Subject: [PATCH] i3bar: free fontname --- i3bar/src/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/i3bar/src/config.c b/i3bar/src/config.c index cbe84d50..edccd3c6 100644 --- a/i3bar/src/config.c +++ b/i3bar/src/config.c @@ -192,6 +192,7 @@ static int config_string_cb(void *params_, const unsigned char *val, size_t _len if (!strcmp(cur_key, "font")) { DLOG("font = %.*s\n", len, val); + FREE(config.fontname); sasprintf(&config.fontname, "%.*s", len, val); return 1; } -- 2.39.5