From 39f6ca65531fe4ebaecdda2780151c38837e91d5 Mon Sep 17 00:00:00 2001 From: Mikolaj Golub Date: Tue, 4 Sep 2012 05:54:43 +0000 Subject: [PATCH] Free memory allocated by procstat_getfiles(), which may make difference when procstat(1) is run with -a option. Submitted by: Daniel Dettlaff MFC after: 1 week --- usr.bin/procstat/procstat_files.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/procstat/procstat_files.c b/usr.bin/procstat/procstat_files.c index 4c1905c919f5..126ef7e4587a 100644 --- a/usr.bin/procstat/procstat_files.c +++ b/usr.bin/procstat/procstat_files.c @@ -476,4 +476,5 @@ procstat_files(struct procstat *procstat, struct kinfo_proc *kipp) printf("\n"); } + procstat_freefiles(procstat, head); }