1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Free the temporary buffer in sysctl_handle_counter_u64_array().

Submitted by:	mjg
This commit is contained in:
Gleb Smirnoff 2016-03-15 00:21:32 +00:00
parent dbfd87087b
commit 1d52250154
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296883

View File

@ -106,6 +106,7 @@ sysctl_handle_counter_u64_array(SYSCTL_HANDLER_ARGS)
out[i] = counter_u64_fetch(((counter_u64_t *)arg1)[i]);
error = SYSCTL_OUT(req, out, arg2 * sizeof(uint64_t));
free(out, M_TEMP);
if (error || !req->newptr)
return (error);