From: Orestis Floros Date: Tue, 26 Sep 2017 09:30:03 +0000 (+0300) Subject: i3bar: free fontname X-Git-Tag: 4.15~34^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7bae0341d48cc5032e59f2c5660c01a9c0dac91;p=i3%2Fi3 i3bar: free fontname --- 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; }