svn commit: r320302 - head/lib/libc/sys

Warner Losh imp at FreeBSD.org
Sat Jun 24 00:28:36 UTC 2017


Author: imp
Date: Sat Jun 24 00:28:35 2017
New Revision: 320302
URL: https://svnweb.freebsd.org/changeset/base/320302

Log:
  Be sure to free allocated statfs11 buffer.
  
  Submitted by: Alistair Crooks

Modified:
  head/lib/libc/sys/getfsstat.c

Modified: head/lib/libc/sys/getfsstat.c
==============================================================================
--- head/lib/libc/sys/getfsstat.c	Fri Jun 23 23:11:05 2017	(r320301)
+++ head/lib/libc/sys/getfsstat.c	Sat Jun 24 00:28:35 2017	(r320302)
@@ -60,5 +60,6 @@ getfsstat(struct statfs *buf, long bufsize, int flags)
 		for (i = 0; i < rv; i++)
 			__statfs11_to_statfs(&statfs11[i], &buf[i]);
 	}
+	free(statfs11);
 	return (rv);
 }


More information about the svn-src-head mailing list