Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2017 00:28:35 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320302 - head/lib/libc/sys
Message-ID:  <201706240028.v5O0SZp8009510@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706240028.v5O0SZp8009510>