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);
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to