[dev] [dwm][PATCH] Fixing memory leak with color schemes

From: jzbor <jzbor_AT_posteo.net>
Date: Wed, 28 Apr 2021 12:18:03 +0000

---
 dwm.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/dwm.c b/dwm.c
index b0b3466..f421d41 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -487,6 +487,7 @@ cleanup(void)
 		drw_cur_free(drw, cursor[i]);
 	for (i = 0; i < LENGTH(colors); i++)
 		free(scheme[i]);
+	free(scheme);
 	XDestroyWindow(dpy, wmcheckwin);
 	drw_free(drw);
 	XSync(dpy, False);
-- 
2.31.1
Received on Wed Apr 28 2021 - 14:18:03 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 28 2021 - 14:24:08 CEST