diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 92d76f7ceee5..e7427cec51d8 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -1157,6 +1157,8 @@ swapmode() * need to bother with totals. */ used = avail - nfree; + free(sw); + free(perdev); if (totalflag) { (void)printf("%dM/%dM swap space\n", used / 2048, avail / 2048); return;