Be sure to free allocated statfs11 buffer.

Submitted by: Alistair Crooks
This commit is contained in:
Warner Losh 2017-06-24 00:28:35 +00:00
parent b5273808ce
commit a639d52309

View File

@ -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);
}