Always use the nv_free function.

Approved by:	pjd (mentor)
This commit is contained in:
Mariusz Zaborski 2015-05-20 17:44:58 +00:00
parent 2afcf984b3
commit 823870acb8

View File

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