From 823870acb8b480660614673b8d616fb2a95585ef Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Wed, 20 May 2015 17:44:58 +0000 Subject: [PATCH] Always use the nv_free function. Approved by: pjd (mentor) --- sys/kern/subr_nvlist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/subr_nvlist.c b/sys/kern/subr_nvlist.c index 40e49ffa9954..28995209cfae 100644 --- a/sys/kern/subr_nvlist.c +++ b/sys/kern/subr_nvlist.c @@ -902,8 +902,8 @@ nvlist_send(int sock, const nvlist_t *nvl) ret = 0; out: ERRNO_SAVE(); - free(fds); - free(data); + nv_free(fds); + nv_free(data); ERRNO_RESTORE(); return (ret); } @@ -958,8 +958,8 @@ nvlist_recv(int sock, int flags) ret = nvl; out: ERRNO_SAVE(); - free(buf); - free(fds); + nv_free(buf); + nv_free(fds); ERRNO_RESTORE(); return (ret);