summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-03-11 20:40:05 +0600
committerrafa_99 <raroma09@gmail.com>2022-03-15 09:52:49 +0000
commit65a6f4e51a9b98fa985f3343f8e1662f7bf034c7 (patch)
treecac85490a4bf81cd413e500c5f0d33be3d465a38
parent6a23af124fb416385dfd3e5cc49b466f9b53cb46 (diff)
fix mem leak in cleanup()
maybe leak isn't the best word, given that the object lives for the entire duration of the program's lifetime. however, all elements of scheme are free-ed, can't think of any reason why scheme itself should be an exception.
-rw-r--r--dwm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index a339dc8..c3c43ba 100644
--- a/dwm.c
+++ b/dwm.c
@@ -570,6 +570,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);