My configuration of sxmo fork of suckless dwm.

git clone git://watertao.xyz/programs/sxmo-dwm.git

commit 36d83f78ac131bbaccd2d31cb3c7eecff4e761b5
parent 4e5c060a207eafd86fc9cd68c4dab9bdefbfe51d
Author: tetrakist <tetrakist@mutandum.com>
Date:   Tue,  9 Mar 2021 08:52:31 -0800

Added missing free() for font and colors.

These were accidentally omitted when porting the Xresources
code from sxmo-dmenu.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>

Diffstat:
Mdwm.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/dwm.c b/dwm.c @@ -1935,6 +1935,7 @@ setup(void) if (!drw_fontset_create(drw, fonts + (iswide() ? 1: 0), LENGTH(fonts) - (iswide() ? 1 : 0))) die("no fonts could be loaded."); + free(fonts[0]); lrpad = drw->fonts->h; bh = drw->fonts->h + 2; updategeom(); @@ -1962,6 +1963,10 @@ setup(void) scheme = ecalloc(LENGTH(colors), sizeof(Clr *)); for (i = 0; i < LENGTH(colors); i++) scheme[i] = drw_scm_create(drw, colors[i], 3); + for (j = 0; j <= SchemeTabInactive; ++j) { + free(colors[j][ColFg]); + free(colors[j][ColBg]); + } /* init bars */ updatebars(); updatestatus();