svn commit: r240510 - stable/9/usr.bin/procstat

Mikolaj Golub trociny at FreeBSD.org
Fri Sep 14 18:45:15 UTC 2012


Author: trociny
Date: Fri Sep 14 18:45:14 2012
New Revision: 240510
URL: http://svn.freebsd.org/changeset/base/240510

Log:
  MFC r240081:
  
  Free memory allocated by procstat_getfiles(), which may make difference
  when procstat(1) is run with -a option.
  
  Submitted by:	Daniel Dettlaff <dmilith gmail com>

Modified:
  stable/9/usr.bin/procstat/procstat_files.c
Directory Properties:
  stable/9/usr.bin/procstat/   (props changed)

Modified: stable/9/usr.bin/procstat/procstat_files.c
==============================================================================
--- stable/9/usr.bin/procstat/procstat_files.c	Fri Sep 14 18:44:23 2012	(r240509)
+++ stable/9/usr.bin/procstat/procstat_files.c	Fri Sep 14 18:45:14 2012	(r240510)
@@ -476,4 +476,5 @@ procstat_files(struct procstat *procstat
 
 		printf("\n");
 	}
+	procstat_freefiles(procstat, head);
 }


More information about the svn-src-stable-9 mailing list