diff --git a/dwm-stat/status.c b/dwm-stat/status.c index bce3cbb..9be2f86 100644 --- a/dwm-stat/status.c +++ b/dwm-stat/status.c @@ -57,6 +57,7 @@ ram_usage(void) double total = info.totalram / 1000000000.; snprintf(buf, sizeof(buf), "%.2f G/ %.1f G", used, total); + pclose(res); return buf; }